#30302: model_to_dict() should return an empty dict for an empty list of fields.
--------------------------------------+------------------------------------
     Reporter:  Belegnar              |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Forms                 |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  1                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by Belegnar):

 This method is comfortable to fetch instance fields values without
 touching ForeignKey fields. List of fields to be fetched is an attr of the
 class, which can be overridden in subclasses and is empty list by default

 Also, patch been proposed is in chime with docstring and common logic

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30302#comment:3>
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/066.9813c23dbb6d6f5a0c3b7f8441d308c8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to