how did that ever work?

pull/46/head
eric 2017-12-08 11:04:00 -05:00
parent 40e5d3f2cc
commit 816b0a1099
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ class UserClaimForm (forms.ModelForm):
def __init__(self, user_instance, *args, **kwargs):
super(UserClaimForm, self).__init__(*args, **kwargs)
self.fields['rights_holder'] = forms.ModelChoiceField(
queryset=user_instance.rights_holder.filter(approved=False),
queryset=user_instance.rights_holder.all(),
empty_label=None,
)

View File

@ -360,7 +360,7 @@ def work(request, work_id, action='display'):
work.last_campaign_status = 'ACTIVE'
if not request.user.is_anonymous():
claimform = UserClaimForm(request.user, data={'claim-work':work.pk, 'claim-user': request.user.id}, prefix = 'claim')
claimform = UserClaimForm(request.user, initial={'work':work.pk, 'user': request.user.id}, prefix = 'claim')
else:
claimform = None