#36963: JSONField("ContactInfo", default=contact_default) i think you need to
discribe more about the passed function
-------------------------------------+-------------------------------------
     Reporter:  yousef_fadli         |                    Owner:  (none)
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Documentation        |                  Version:  6.0
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by shubh-gitpush):

 The documentation says that the callable must expect no arguments. Django
 invokes it without passing self or cls, defining it as a normal instance
 method or class method would not work unless extra wrapping is used.

 Therefore, if the callable is defined inside the model class, it would
 need to be a @staticmethod, or alternatively be defined at module level.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36963#comment:1>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019ca981c9a9-35b0e107-c2e0-4d27-8118-424fffeb0cae-000000%40eu-central-1.amazonses.com.

Reply via email to