I dunno if this is the answer you are looking for, but if you want to
enforce that there is only one user set unique = True for the user in
the UserProfile class.

class UserProfile(models.Model):
  user = models.ForeignKey(User, unique = True)

On Feb 11, 10:42 am, Aaron Fay <[EMAIL PROTECTED]> wrote:
> Hi List,
>
> I am using newforms admin and have a custom UserProfile model set in my
> inlines for my User, is there a way to limit the UserProfile to 1 for
> the User?  Right now it's trying to offer 4 profiles for the user, and
> 'extras=1' doesn't seem to affect how many are displayed (I don't want
> extras anyway, I just want 1).
>
> Thanks in advance,
> Aaron
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to