Some com templates improvments and reordering some models

This commit is contained in:
Skia committed 2017-03-24 09:19:15 +01:00
1 parent d2da5716ba
commit 39b32d456c
10 files changed
+94 -6

No files matched your search

+4
View File
@@ -33,6 +33,10 @@ class Group(AuthGroup):
help_text=_('Whether a group is a meta group or not'),
)
description = models.CharField(_('description'), max_length=60)
class Meta:
ordering = ['name']
def get_absolute_url(self):
"""
This is needed for black magic powered UpdateView's children