Order activities by name by default
This commit is contained in:
parent
2d09e25df3
commit
30bc1deb73
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