#27675: Django postgres JSONField encoding
-------------------------------------+-------------------------------------
     Reporter:  Hisham Waleed Karam  |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.postgres     |                  Version:  1.10
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:  models JSONField     |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by grapemix):

 After debugging like crazy for a few days, we got some good news.

 Short story:
 Django's JSONField cannot be mixed with django-jsonfield's JSONField to
 use. See: [https://bitbucket.org/schinckel/django-jsonfield/issues/57
 /cannot-use-in-the-same-project-as-djangos], not even just in migration
 files. After removing all migrations file and run the make migrations cmd,
 everything is working.

 Long story:
 We had tried running Django's std postgres testcase and our testcase
 seperately and mix and matched to try to reproduce the problem. Since we
 used django-jsonfield's JSONField before and we would like to switch to
 Django's JSONField at once, we only keep django-jsonfield's JSONField at
 migrations file to 'transit'. That's why the test result is so in-
 consistence. After removing all migrations file and run the make
 migrations cmd, everything is working.

 Since we only tested on our dev environment, we are not sure the
 transition in the prod. If we have not screamed in the following days,
 that means the transition in the prod is good.
 Thanks everyone for your time.

--
Ticket URL: <https://code.djangoproject.com/ticket/27675#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.c80d2c7ca1e7956f1fc6ed63585259bc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to