Good day guyz trying to create a radio button and checkbox and save it to the database using my models, but it doesn't seems to be working the way i want it, hoping anyone can help me out below is my code.
models.py
class Sports(models.Model):
sport = models.CharField(max_length = 150)
class School(models.Model):
SPORTS = models.ManyToManyField(Sports)
forms.py
class Data(ModelForm)
SPORT = forms.MultipleChoiceField(
widget=forms.CheckboxSelectMultiple,
queryset=Sports.objects.all(),)
will be glad if i can get any one to help