0
0
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:
erickmk 2016-12-19 14:05:52 +03:00 committed by Matt Westcott
parent 0f94222689
commit eb16a476ba
2 changed files with 3 additions and 2 deletions

View File

@ -196,6 +196,7 @@ Contributors
* Marco Fucci
* Mihail Russu
* Robert Slotboom
* Erick M'bwana
Translators
===========

View File

@ -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):