From 5ad094c847d73cec6279061b8d04bca6ff849082 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 16 Jan 2011 01:36:15 +0100 Subject: Better management of accounts --- ishtar/furnitures/models.py | 4 +--- ishtar/settings.py.example | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ishtar/furnitures/models.py b/ishtar/furnitures/models.py index 01296c109..3863669e7 100644 --- a/ishtar/furnitures/models.py +++ b/ishtar/furnitures/models.py @@ -195,9 +195,7 @@ class Person(Address, OwnPerms) : lbl += self.email return lbl -class IshtarUser(models.Model): - user = models.ForeignKey(User, unique=True, related_name='profile', - verbose_name=_(u"User")) +class IshtarUser(User): person = models.ForeignKey(Person, verbose_name=_(u"Person")) class Meta: diff --git a/ishtar/settings.py.example b/ishtar/settings.py.example index 893cfd433..4d8cbc8ff 100644 --- a/ishtar/settings.py.example +++ b/ishtar/settings.py.example @@ -18,6 +18,7 @@ ADMINS = ( ) MANAGERS = ADMINS +AUTH_PROFILE_MODULE = 'furnitures.IshtarUser' DATABASES = { 'default': { -- cgit v1.2.3