fixed tuple append
This commit is contained in:
parent
a7c6e4a568
commit
55173a5b2e
|
|
@ -61,8 +61,10 @@ class BaseModel( models.Model ):
|
|||
To create json/dict from fields.
|
||||
"""
|
||||
|
||||
|
||||
if presentation_name:
|
||||
assert presentation_name in self._model_presentations, f"This model '{self.__class__}' does not have a '{presentation_name}' presentation!"
|
||||
fields = list(fields)
|
||||
fields.extend( self._model_presentations[presentation_name].fields )
|
||||
|
||||
results = {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user