Code

Ticket #11879: user_profile.diff

File user_profile.diff, 462 bytes (added by llonchj@…, 5 years ago)

user.profile patch

Line 
1--- django/contrib/auth/models.orig.py  2009-09-15 09:17:28.000000000 +1000
2+++ django/contrib/auth/models.py       2009-09-15 09:17:58.000000000 +1000
3@@ -287,7 +287,8 @@
4             except (ImportError, ImproperlyConfigured):
5                 raise SiteProfileNotAvailable
6         return self._profile_cache
7-
8+    profile = property(get_profile)
9+   
10 class Message(models.Model):
11     """
12     The message system is a lightweight way to queue messages for given