Add Document type; Audio extends Document

pull/19/head
Dashie 2019-03-23 14:15:07 +01:00
rodzic 65c94f9854
commit 2bd3f736ca
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: C2D57B325840B755
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -86,6 +86,7 @@ class ActivityType(Enum):
ARTICLE = "Article"
VIDEO = "Video"
AUDIO = "Audio"
DOCUMENT = "Document"
ACCEPT = "Accept"
REJECT = "Reject"
@ -908,7 +909,13 @@ class Video(Note):
OBJECT_REQURIED = False
class Audio(Note):
class Document(BaseActivity):
ACTIVITY_TYPE = ActivityType.DOCUMENT
ACTOR_REQUIRED = True
OBJECT_REQUIRED = False
class Audio(Document):
ACTIVITY_TYPE = ActivityType.AUDIO
ACTOR_REQUIRED = True
OBJECT_REQUIRED = False