Add better support for targets on Activities

This adds betters upport for targets in the content generation
and on the model itself. Adding getters for properties which would
otherwise require looking up e.g. get_author.
This commit is contained in:
Jessica Tallon
2014-08-26 08:53:28 +01:00
parent b949201152
commit 1c15126819
2 changed files with 82 additions and 45 deletions

View File

@@ -289,7 +289,7 @@ def media_collect(request, media):
% (media.title, collection.title))
else: # Add item to collection
add_media_to_collection(collection, media, form.note.data)
create_activity("add", media)
create_activity("add", media, target=collection)
messages.add_message(request, messages.SUCCESS,
_('"%s" added to collection "%s"')
% (media.title, collection.title))