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