summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-08-31 16:03:12 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-08-31 16:03:38 +0200
commit88546436f8eeea52461456f5f46736900f652a93 (patch)
tree9a058ead8859b9229c6e44f1d17385477903c571 /ishtar_common/models.py
parent9f4fb05ea2650936a3c913205ad073a385cd9260 (diff)
downloadIshtar-88546436f8eeea52461456f5f46736900f652a93.tar.bz2
Ishtar-88546436f8eeea52461456f5f46736900f652a93.zip
Admin: profile type summary page
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 8096bf6ba..4f1168d39 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -2998,6 +2998,13 @@ post_save.connect(post_save_cache, sender=ProfileType)
post_delete.connect(post_save_cache, sender=ProfileType)
+class ProfileTypeSummary(ProfileType):
+ class Meta:
+ proxy = True
+ verbose_name = _(u"Profile type summary")
+ verbose_name_plural = _(u"Profile types summary")
+
+
class UserProfile(models.Model):
name = models.CharField(_(u"Name"), blank=True, default=u"", max_length=100)
profile_type = models.ForeignKey(