mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-05 05:54:44 +00:00
replace self with cls for class method
This commit is contained in:
parent
0f94222689
commit
eb16a476ba
2 changed files with 3 additions and 2 deletions
|
|
@ -196,6 +196,7 @@ Contributors
|
|||
* Marco Fucci
|
||||
* Mihail Russu
|
||||
* Robert Slotboom
|
||||
* Erick M'bwana
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -448,8 +448,8 @@ class BaseFieldPanel(EditHandler):
|
|||
return mark_safe(render_to_string(self.field_template, context))
|
||||
|
||||
@classmethod
|
||||
def required_fields(self):
|
||||
return [self.field_name]
|
||||
def required_fields(cls):
|
||||
return [cls.field_name]
|
||||
|
||||
|
||||
class FieldPanel(object):
|
||||
|
|
|
|||
Loading…
Reference in a new issue