From 3c3b3c384b1dfbb92a84659052d6d1c85b904f67 Mon Sep 17 00:00:00 2001 From: Justin Littman Date: Fri, 14 Oct 2016 10:51:59 -0400 Subject: [PATCH] refs #480. Clears history note when toggling collections on/off. --- sfm/ui/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sfm/ui/views.py b/sfm/ui/views.py index 584e3018..74b5509e 100644 --- a/sfm/ui/views.py +++ b/sfm/ui/views.py @@ -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: