mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-16 20:48:37 -04:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user