mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Reverted parts of r16963 to fix a regression on the creation of permissions on proxy models. Refs #17904. Thanks koenb for the report and claudep for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17776 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -44,6 +44,9 @@ class MyPerson(Person):
|
||||
class Meta:
|
||||
proxy = True
|
||||
ordering = ["name"]
|
||||
permissions = (
|
||||
("display_users", "May display users information"),
|
||||
)
|
||||
|
||||
objects = SubManager()
|
||||
other = PersonManager()
|
||||
@@ -158,4 +161,4 @@ class Improvement(Issue):
|
||||
|
||||
class ProxyImprovement(Improvement):
|
||||
class Meta:
|
||||
proxy = True
|
||||
proxy = True
|
||||
|
||||
Reference in New Issue
Block a user