[Answered ]-How to assign a user to an employee in Django

1👍

I guess your code to be modified as,

  class EmployeeForm(forms.ModelForm):
 
    user= forms.ModelChoiceField(queryset=User.objects.filter(employee=None))

Please try the above.

Leave a comment