Composite key issues with Inline admin

2010-02-17 Thread Jacek Furmankiewicz
We are redoing old legacy J2EE/Weblogic portals in Django, so we're one of those shops that is dealing with a legacy DB (no changes to the current schema are possible). The lack of composite key support is really starting to kill us on a few tables that we wanted to use via the Admin Inline interf

Re: Django IDE

2010-02-17 Thread Jacek Furmankiewicz
We've had fairly good experience with Eclipse and the PyDev plugins for it. Gives you even refactoring, which came in handy a few times. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegrou

Fine-grained object level permissions

2010-02-17 Thread Jacek Furmankiewicz
We have a use where we need to limit access to particular *instances* of objects. It's not a simple case of add/delete/update permissions. Let's say a sales rep has his 5 customer he is responsible. In the customer admin he should only see those 5 and no others. Also, in all other admin screens (e

Re: Fine-grained object level permissions

2010-02-18 Thread Jacek Furmankiewicz
Is it possible to intercept the QuerySets that Django generates? Maybe there is some generic QuerySetFactory per each entity that we could use to filter out the disallowed instances? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: Fine-grained object level permissions

2010-02-18 Thread Jacek Furmankiewicz
Ah, very interesting, exactly what I was looking for, thanks for the tip. Jacek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to d

Form query set not respected in Admin list page

2010-02-18 Thread Jacek Furmankiewicz
If I override a field in an Admin form to limit the selected choices, e.g. class MyForm(forms.ModelForm): entity = forms.ModelChoiceField(queryset=MyEntity.objects.all().filter(some_field ="some_value") class Meta: model = MyEntity I see that my dropdown in the Form is properly fi