Change default ordering and unicode repr for Periode
This commit is contained in:
parent
bc9a9eddc6
commit
dc3033ae3c
1 changed files with 2 additions and 1 deletions
|
|
@ -155,9 +155,10 @@ class Period(models.Model):
|
|||
|
||||
class Meta:
|
||||
verbose_name = "Période de stage"
|
||||
ordering = ('-start_date',)
|
||||
|
||||
def __unicode__(self):
|
||||
return '%s (filière %s)' % (self.dates, self.section)
|
||||
return '%s (%s)' % (self.dates, self.title)
|
||||
|
||||
@property
|
||||
def dates(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue