[Python] Validation error with Django model JSONField

Discussão em 'Python' iniciado por Stack, Fevereiro 4, 2025.

  1. Stack

    Stack Membro Participativo

    I have added a JSONField to a django model. The data gets saved in dictionary format. But when I try to use that field in admin, it says:

    Validation Error: [u'Enter valid JSON']


    What does this error mean?

    models.py:

    udf5 = JSONField(_('UDF5'), max_length=255, blank=True, null=True)

    Continue reading...

Compartilhe esta Página