Re: newforms-admin inlines question

2008-02-11 Thread Aaron Fay
Hey guys, Thanks for the replies.  Part of the issue I was having is I had the extras keyword in the wrong subclass (I had it in the options class for my model, instead of the inline class).  It appears the functionality is working as it should be for now... Cheers, Aaron Brian Rosner wrot

Re: newforms-admin inlines question

2008-02-11 Thread Brian Rosner
> 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 > extr

Re: newforms-admin inlines question

2008-02-11 Thread shabda
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]> w

newforms-admin inlines question

2008-02-10 Thread Aaron Fay
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