Thanks John, A combination of overriding django's built in functions and some jiggery pokery has got me most of the way there. I shall continue.
On Aug 19, 2:23 pm, John M <[EMAIL PROTECTED]> wrote: > I suspect you'll have to intercept one of the many signals django has > in it's architecture. Sorry, not sure where to point you other than > that. > > John > > On Aug 19, 4:19 am, chewynougat <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > I have an admin add form that allows users to insert documents. I have > > a select box which currently displays all company departments and > > their relevant categories (e.g. finance and admin -> payroll, finance > > and admin -> expenses etc). What I would like to do is display the > > relevant departments and categories only to which the current user > > belongs. I am totally stumped on how to go about this so any help is > > much appreciated. Currently I am overriding get_form and get_fieldset > > to display all departments and categories if the user has all > > permissions. If the user doesn't have these permissions, the select > > box is removed and the department to which the current user belongs is > > used - but this limits the choice to the top level (i.e. finance) and > > not the categories of the department. > > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---