Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

exclude serializer

class OperativeForm(forms.ModelForm):
    class Meta:
        model = Operative
        fields = '__all__'
        exclude = ('name','objective',)
        widgets = {'__all__':'required'}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #exclude #serializer
ADD COMMENT
Topic
Name
2+6 =