Re: Proxy model only shows for superuser

2009-08-08 Thread lzantal



On Aug 7, 12:31 pm, lzantal  wrote:
> Hi,
>
> I have a Client model and I created a BrokerClient model as a proxy of
> client
> class Client(models.Model):
>     ...
>
> class BrokerClient(Client):
>     class Meta:
>         proxy = True
>
> Now in admin the BrokerClient only shows up if I am a superuser.
> I even gice all the available User permissions to a user but not make
> it to superuser
> and BrokerClient did not show up in admin. But as soon as I make this
> new user with all the permissions a super user it shows up.
> Very strange.
>
> Thank you for all the help
>
> lzantalhttp://twitter.com/lzantal
I move the proxy model into the same app and now
the permission system works.

Is it a bug in django?

lzantal
http://twitter.com/lzantal
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Proxy model only shows for superuser

2009-08-07 Thread lzantal

Hi,

I have a Client model and I created a BrokerClient model as a proxy of
client
class Client(models.Model):
...

class BrokerClient(Client):
class Meta:
proxy = True

Now in admin the BrokerClient only shows up if I am a superuser.
I even gice all the available User permissions to a user but not make
it to superuser
and BrokerClient did not show up in admin. But as soon as I make this
new user with all the permissions a super user it shows up.
Very strange.

Thank you for all the help

lzantal
http://twitter.com/lzantal
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---