Rename JSONModel to SerialisedModel 2/2

This class doesn’t actually wrap JSON, it wraps serialised data.

So this name feels better.
This commit is contained in:
Chris Hill-Scott
2020-06-22 10:20:53 +01:00
parent e6b7e0e16c
commit 5a2f2a9ec2
5 changed files with 16 additions and 16 deletions

View File

@@ -3,7 +3,7 @@ from abc import ABC, abstractmethod
from app.dao import templates_dao
class JSONModel(ABC):
class SerialisedModel(ABC):
@property
@abstractmethod
@@ -18,7 +18,7 @@ class JSONModel(ABC):
return super().__dir__() + list(sorted(self.ALLOWED_PROPERTIES))
class TemplateJSONModel(JSONModel):
class SerialisedTemplate(SerialisedModel):
ALLOWED_PROPERTIES = {
'archived',
'content',