send rh to rh page after claiming work

pull/1/head
eric 2014-06-20 15:37:23 -04:00
parent 6cb8daf1b4
commit 420cbdf448
1 changed files with 1 additions and 1 deletions

View File

@ -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'])