I have a Django project which supports user-defined fields. A user can
create a custom field with a type, default value, etc. and apply it to
different models within the Django project. These custom fields are
represented in the API as a JSON object with each field appended as an
attribute. For example:

{
    "id": 372,
    "name": "My Object",
    ...
    "custom_fields": {
        "in_stock": true,
        "magic_number": 382671
    }
}

This is fine for retrieving data, but I'm trying to figure out how to make
these fields writable. Is it possible to generate a serializer dynamically
according to values stored in the database? Or is there a better way to go
about this?

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to