mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-28 08:48:04 +01:00
replace self with cls for class method
This commit is contained in:
parent
0f94222689
commit
eb16a476ba
@ -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 New Issue
Block a user