gotta simplify the add activity
This commit is contained in:
@ -121,6 +121,9 @@ class Add(Verb):
|
||||
target: str
|
||||
object: Edition
|
||||
type: str = 'Add'
|
||||
notes: str = None
|
||||
order: int = 0
|
||||
approved: bool = True
|
||||
|
||||
def action(self):
|
||||
''' add obj to collection '''
|
||||
@ -131,14 +134,6 @@ class Add(Verb):
|
||||
self.to_model(model=model)
|
||||
|
||||
|
||||
@dataclass(init=False)
|
||||
class AddListItem(Add):
|
||||
'''Add activity that's aware of the book obj '''
|
||||
notes: str = None
|
||||
order: int = 0
|
||||
approved: bool = True
|
||||
|
||||
|
||||
@dataclass(init=False)
|
||||
class Remove(Verb):
|
||||
'''Remove activity '''
|
||||
|
Reference in New Issue
Block a user