django rest framework use all and extend fields in a serializer

Solutions on MaxInterview for django rest framework use all and extend fields in a serializer by the best coders in the world

showing results for - "django rest framework use all and extend fields in a serializer"
Ester
07 Nov 2016
1model = MyModel
2fields = [field.name for field in model._meta.fields]
3fields.append('any_other_field')
4