How do I add permissions in admin for proxy model?

663 views
Skip to first unread message

frocco

unread,
Nov 9, 2015, 3:31:35 PM11/9/15
to Django users
I have 
class qry485Missing(Tracking):
class Meta:
proxy = True
permissions = (
("qry485Missing_display", "May display information"),
("qry485Missing_edit", "May edit information"),
)
verbose_name = "485 Missing"
verbose_name_plural = "485 Missing"

This does not show up in admin to allow users access.
I have to grant superuser status to see it.

Thanks

frocco

unread,
Nov 10, 2015, 11:36:39 AM11/10/15
to Django users
Just an update.
This is now working in django 1.8.6

frocco

unread,
Nov 11, 2015, 11:06:18 AM11/11/15
to Django users
This is still not working.

Simon Charette

unread,
Nov 11, 2015, 1:57:18 PM11/11/15
to Django users
Hi frocco,

This might be related to #11154 and #17904.

Did you try running the `migrate` command? It looks like it might trigger the creation of your custom permissions.

Cheers,
Simon

manim...@ishafoundation.org

unread,
Jan 15, 2016, 10:41:03 AM1/15/16
to Django users
Hi Simon,

I am also facing the issue. the thing is Proxy model is working if the model is in same app. But if the model is imported from another app it is not working.  Tried Migrate command. But issue is there. can you help me?

Cheers,
Manimaran

Simon Charette

unread,
Jan 15, 2016, 12:16:34 PM1/15/16
to Django users
Hi Manimaran,

I can't help you much with the details you provided.

Could you come with an example project to reproduce your issue?

Simon
Reply all
Reply to author
Forward
0 new messages