I have an Account model:
class Account(models.Model):
accountname = models.CharField(max_length=50, unique=True)
owner = models.ForeignKey(User)
admins = models.ManyToManyField(User, related_name='admins',
blank=True)
accounts = models.ManyToManyField(User,
related_name='accounts', blank=True)
def __str__(self):
return self.name
I want to create a single form that creates an account and an
owner(contrib.auth.User) at the same time.
Is there an easy way of doing this or do I need to create a custom
form that contains the fields of both models and then separate the
data in my view?
Paddy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---