On Fri, 2007-03-30 at 09:50 -0700, TaMeR wrote: > > Below I have posted a short form of my modules. > In the admin backend, when a user goes in to the Vehicle form the > company field should be filled with the users own company data but the > admin should still get the select box. > > This is a big one then I don't have to create all the forms and can > just give users limited access to the admin backend. Thanks.
The admin interface isn't designed for this sort of use-case. Rather, it gives everybody access to every item. Populating the fields based on the current user isn't easily achievable with the admin interface, either. You would need to be prepared to do some code customisations. It's usually simpler to write add/edit pages for your own particular purposes for cases like this. It isn't a lot of forms (one, usually). You might be able to do some customisations with the newforms-admin code (it's a branch in svn that will become the admin interface shortly) -- it's designed to be a bit more customisable. I haven't looked into what's possible there yet, though, so I'm not really sure. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---