Take a look at the user object and user manager:
http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/models.py

There is the method: create_user(self, username, email, password)

Probably the best way of doing what you want to do is by doing a
similiar method using the manager. E.g.

Class CustomManager((models.Manager):
   def createObject(...):
      ....

Class CustomModel(models.Model):
  ....
  objects = CustomManager()
  ....

Hope that makes sense, it's early and I haven't had my coffee yet. ;)

Chris


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to