diff --git a/smash/web/models.py b/smash/web/models.py index 03f784fc8399a99ea3c8f92339eff5cbf43bdafe..fd125d470b9f40b2bd7885e72fffd4596a06e219 100644 --- a/smash/web/models.py +++ b/smash/web/models.py @@ -322,11 +322,14 @@ class AppointmentType(models.Model): default='ANY' ) + class Meta: + ordering = ['description'] + def __str__(self): - return self.code + return self.description def __unicode__(self): - return self.code + return self.description class Worker(models.Model):