class EditRecords forms Form def __init__ self request args kwargs sel

1
2
3
4
5
6
class EditRecords(forms.Form):
def __init__(self, request, *args, **kwargs):
self.user = request.user
super(EditRecords, self).__init__(self, *args, **kwargs)
radio = forms.ModelChoiceField(Record.objects.filter(user=self.user))