Fix #5514 - Add to Collection causes server error
authorayleph <ayleph@thisshitistemp.com>
Thu, 29 Jun 2017 04:49:29 +0000 (21:49 -0700)
committerAndrew Browning <ayleph@thisshitistemp.com>
Tue, 15 Aug 2017 06:39:00 +0000 (02:39 -0400)
commit763eae89d9c13459a9e8ef1de384a7025d5820dd
tree71de72cfeebd57b1c76834314b30e046042fd3b8
parent5487c3b0d95313aff67dd3a2b6fbb2007119ac53
Fix #5514 - Add to Collection causes server error

Re-arrange code to check whether a collection has been selected prior
to checking whether an item already exists in the selected collection.
This fixes a regression introduced in 0f3bf8d.
mediagoblin/user_pages/views.py