Order activities by name by default

This commit is contained in:
Kumi 2021-03-03 10:35:54 +01:00
parent 2d09e25df3
commit 30bc1deb73

View file

@ -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)