send rh to rh page after claiming work
parent
6cb8daf1b4
commit
420cbdf448
|
@ -1675,7 +1675,7 @@ def claim(request):
|
||||||
# make sure we're not creating a duplicate claim
|
# make sure we're not creating a duplicate claim
|
||||||
if not models.Claim.objects.filter(work=form.cleaned_data['work'], rights_holder=form.cleaned_data['rights_holder']).exclude(status='release').count():
|
if not models.Claim.objects.filter(work=form.cleaned_data['work'], rights_holder=form.cleaned_data['rights_holder']).exclude(status='release').count():
|
||||||
form.save()
|
form.save()
|
||||||
return HttpResponseRedirect(reverse('work', kwargs={'work_id': form.cleaned_data['work'].id}))
|
return HttpResponseRedirect(reverse('rightsholders'))
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
work = models.Work.objects.get(id=data['claim-work'])
|
work = models.Work.objects.get(id=data['claim-work'])
|
||||||
|
|
Loading…
Reference in New Issue