Forgive if its so obvious, I have“nt coded in Python for a while.
While poking around in the Django internals, I saw this:
# snip
class UserManager(models.Manager):
def create_user(self, username, email, password):
"Creates and saves a User with the given username, e-mail and
password."
now = datetime.datetime.now()
user = self.model(None, username, '', '',
email.strip().lower(), 'placeholder', False, True, False, now, now)
...
...
#SNIP
I do not understand this line:
user = self.model(None, username, '', '', email.strip().lower(),
'placeholder', False, True, False, now, now)
I looked in the class definition of Manager and I found no
model.__init__ function that would take the arguments listed above, I
dug deeper and looked at the definition of "Model", no luck.
Could someone explain this to me?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" 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/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---