Order activities by name by default
This commit is contained in:
parent
eb7344305d
commit
42c498923c
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@ class ActivityCategory(models.Model):
|
|||
return self.name
|
||||
|
||||
class Activity(models.Model):
|
||||
class Meta:
|
||||
ordering = ["name"]
|
||||
|
||||
user = models.ForeignKey(get_user_model(), models.CASCADE)
|
||||
name = models.CharField(max_length=64)
|
||||
icon = models.CharField(default="fas fa-check", max_length=64)
|
||||
|
|
Loading…
Reference in a new issue