kopia lustrzana https://github.com/tsileo/little-boxes
Add Document type; Audio extends Document
rodzic
65c94f9854
commit
2bd3f736ca
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue