edge case for shelf initialization
This commit is contained in:
parent
39bc7497f0
commit
41c265295b
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ class Mark:
|
|||
else:
|
||||
# ignore most recent post if exists and create new one
|
||||
update_mode = 2
|
||||
shelf = Shelf.objects.get(owner=self.owner, shelf_type=shelf_type)
|
||||
shelf = self.owner.shelf_manager.get_shelf(shelf_type)
|
||||
d = {"parent": shelf, "visibility": visibility, "position": 0}
|
||||
if metadata:
|
||||
d["metadata"] = metadata
|
||||
|
|
Loading…
Add table
Reference in a new issue