django rest framework serializer all fields code example
Example: django rest framework use all and extend fields in a serializer
model = MyModel
fields = [field.name for field in model._meta.fields]
fields.append('any_other_field')
model = MyModel
fields = [field.name for field in model._meta.fields]
fields.append('any_other_field')