mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-26 09:52:16 +00:00
Bug fix for #30
This commit is contained in:
@@ -107,6 +107,7 @@ class EventDuplicate(generic.RedirectView):
|
||||
def get_redirect_url(self, *args, **kwargs):
|
||||
new = get_object_or_404(models.Event, pk=kwargs['pk'])
|
||||
new.pk = None
|
||||
new.based_on = models.Event.objects.get(pk=kwargs['pk'])
|
||||
new.save()
|
||||
|
||||
old = get_object_or_404(models.Event, pk=kwargs['pk'])
|
||||
|
||||
Reference in New Issue
Block a user