Answers for "django rest framework use all and extend fields in a serializer"

0

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')
Posted by: Guest on May-23-2021

Code answers related to "django rest framework use all and extend fields in a serializer"

Python Answers by Framework

Browse Popular Code Answers by Language