mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-31 06:39:31 +00:00
Some com templates improvments and reordering some models
This commit is contained in:
1 parent
d2da5716ba
commit
39b32d456c
10 files changed
+94
-6
No files matched your search
@@ -38,6 +38,9 @@ class Club(models.Model):
|
||||
home = models.OneToOneField(SithFile, related_name='home_of_club', verbose_name=_("home"), null=True, blank=True,
|
||||
on_delete=models.SET_NULL)
|
||||
|
||||
class Meta:
|
||||
ordering = ['name', 'unix_name']
|
||||
|
||||
def check_loop(self):
|
||||
"""Raise a validation error when a loop is found within the parent list"""
|
||||
objs = []
|
||||
|
||||
Reference in new issue
Block a user