Remove Event.purchase_order in favour of a simple EventAuthorisation object.

This commit is contained in:
Tom Price
2017-04-10 23:14:09 +01:00
parent 391d9ef28f
commit 067e03b757
8 changed files with 49 additions and 26 deletions

View File

@@ -125,7 +125,6 @@ class EventDuplicate(EventUpdate):
old = super(EventDuplicate, self).get_object(queryset) # Get the object (the event you're duplicating)
new = copy.copy(old) # Make a copy of the object in memory
new.based_on = old # Make the new event based on the old event
new.purchase_order = None
if self.request.method in (
'POST', 'PUT'): # This only happens on save (otherwise items won't display in editor)