Skip to content

Commit

Permalink
refs #480. Clears history note when toggling collections on/off.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Littman committed Oct 14, 2016
1 parent 7940400 commit 3c3b3c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sfm/ui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ class CollectionToggleActiveView(LoginRequiredMixin, RedirectView):
def get_redirect_url(self, *args, **kwargs):
collection = get_object_or_404(Collection, pk=kwargs['pk'])
collection.is_active = not collection.is_active
collection.history_note = ""
if collection.is_active:
messages.info(self.request, "Harvesting is turned on.")
else:
Expand Down

0 comments on commit 3c3b3c3

Please sign in to comment.