Author: leidel
Date: Sat Sep 27 15:37:43 2008
New Revision: 969
Modified:
trunk/local_apps/account/models.py
Log:
Removed unnecessary save of Account objects
Modified: trunk/local_apps/account/models.py
==============================================================================
--- trunk/local_apps/account/models.py (original)
+++ trunk/local_apps/account/models.py Sat Sep 27 15:37:43 2008
@@ -54,11 +54,9 @@
info.value = value
info.save()
-def create_account(sender, instance=None, **kwdargs):
+def create_account(sender, instance=None, **kwargs):
if instance is None:
return
account, created = Account.objects.get_or_create(user=instance)
- if created:
- account.save()
post_save.connect(create_account, sender=User)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---