newforms-admin permissions

2008-06-12 Thread emont88
I just switched over to the newforms-admin branch because I need to add specific permissions to my admin site. I have been looking over the newforms-admin howto and the ModelAdmin class, but I haven't been able to figure very much out. My app is a blogging app that needs to support multiple blogs

ModelForms

2008-06-16 Thread emont88
I'm running into an interesting problem with ModelForms. I have a blogging app that handles multiple blogs, which makes things tricky with categories, because each category needs to belong to a specific blog, so an author editing blog1 should not be allowed to post an Entry to a Category from blog

Re: ModelForms

2008-06-16 Thread emont88
when printed to the console, shouldn't that be exactly what ends up in the html form? On Jun 17, 1:37 am, "Jonas Oberschweiber" <[EMAIL PROTECTED]> wrote: > AFAIK querysets are always cached. > > On Tue, Jun 17, 2008 at 7:06 AM, emont88 <[EMAIL PROTECTED]> w

Re: ModelForms

2008-06-16 Thread emont88
should... I don't really know much about the > inner workings of ModelForms, but you could try inserting print > statements or something the like directly in the django code for > testing purposes. Or just look at the django code. That almost always > solves the problems I have

Re: ModelForms

2008-06-17 Thread emont88
Michael, As it turned out, I just needed to set the Category queryset using the "form_instance.fields['fieldname'].queryset = myqueryset" syntax that you suggested. I'm still not sure what was going on there before, but it seems everything is working now. Thanks for the help. Eric On Jun 17, 7: