how did that ever work?
parent
40e5d3f2cc
commit
816b0a1099
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue