kopia lustrzana https://github.com/wagtail/wagtail
Fix get_permission_helper_class documentation typo
rodzic
5f3458842b
commit
8161d7c14c
|
@ -321,6 +321,7 @@ Contributors
|
|||
* Ben Dickinson
|
||||
* Meteor0id
|
||||
* Naa Marteki Reed
|
||||
* Jorge Barata
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
@ -339,7 +339,7 @@ isn't possible or doesn't meet your needs, you can override the
|
|||
class MyModelAdmin(ModelAdmin):
|
||||
model = MyModel
|
||||
|
||||
def get_get_permission_helper_class(self):
|
||||
def get_permission_helper_class(self):
|
||||
if self.some_attribute is True:
|
||||
return MyPermissionHelper
|
||||
return PermissionHelper
|
||||
|
|
Ładowanie…
Reference in New Issue