Fix definition of DISPLAYED_FIELDS
This commit is contained in:
parent
7244665495
commit
b105b8df19
2 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ __all__ = ['Boobsize']
|
|||
|
||||
class GaugeFormatter(IFormatter):
|
||||
MANDATORY_FIELDS = ('name', 'object', 'sensors')
|
||||
DISPLAYED_FIELDS = self.MANDATORY_FIELDS + ('city', )
|
||||
DISPLAYED_FIELDS = ('city', )
|
||||
|
||||
def start_format(self, **kwargs):
|
||||
# Name = 27 Object = 10 City = 10 Sensors = 33
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ __all__ = ['Videoob']
|
|||
|
||||
class VideoListFormatter(PrettyFormatter):
|
||||
MANDATORY_FIELDS = ('id', 'title', 'duration', 'date')
|
||||
DISPLAYED_FIELDS = self.MANDATORY_FIELDS + ('author', 'rating')
|
||||
DISPLAYED_FIELDS = ('author', 'rating')
|
||||
|
||||
def get_title(self, obj):
|
||||
return obj.title
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue