Re: Using proxy kind of Table in Admin Interface

2015-03-04 Thread luis zarate
Maybe you can use get_queryset in the admin class and replace the query manager ref: https://docs.djangoproject.com/en/1.7/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_queryset https://docs.djangoproject.com/en/1.7/topics/db/managers/ you can do something like this: def get_queryset(s

Re: Using proxy kind of Table in Admin Interface

2015-03-03 Thread Rootz
On Tuesday, March 3, 2015 at 12:26:05 AM UTC-5, Simon Charette wrote: > > Hi Rootz, > > Unfortunately there's a long standing ticket to solve inconsistency with > permissions for proxy models > so your chosen approach > won't work until this is fix

Re: Using proxy kind of Table in Admin Interface

2015-03-02 Thread Simon Charette
Hi Rootz, Unfortunately there's a long standing ticket to solve inconsistency with permissions for proxy models so your chosen approach won't work until this is fixed. Simon Le lundi 2 mars 2015 11:16:36 UTC-5, Rootz a écrit : > > Question. > How w

Re: Using proxy kind of Table in Admin Interface

2015-03-02 Thread Rootz
Ok below is a sample of the models.py class LocationProfile(models.Model): shortName = models.CharField('Location Name',max_length=100,primary_key = True) longName = models.CharField('Church Name',max_length=100) . class Member(models.Model): first = models.CharField('Fi

Re: Using proxy kind of Table in Admin Interface

2015-03-02 Thread Derek
I am not quite sure what you are trying to achieve (without seeing sample code), but here is some very basic code showing how a proxy could work: models.py class MainModel(Model): """mother of models""" ... class MainModelProxy(MainModel): objects = MainModelProxyManager()

Using proxy kind of Table in Admin Interface

2015-03-02 Thread Rootz
Question. How would one go about designing the django table(s) so that I can assign each user account/group a different Model Manager using the same table in the Django admin interface? After doing some reading the closest that comes to this is the Proxy Model but I tried adding the proxy mode

Using proxy kind of Table in Admin Interface

2015-03-01 Thread Rootz
Question. How would one go about designing the django table(s) so that I can assign each user account/group a different Model Manager using the same table in the Django admin interface? After doing some reading the closest that comes to this is the Proxy Model but I tried adding the proxy mode