#31771: Add warning if model field has trailing comma
-------------------------------------+-------------------------------------
               Reporter:  Jonas      |          Owner:  nobody
  Haag                               |
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:  Database   |        Version:  master
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  1          |
-------------------------------------+-------------------------------------
 If someone types (note the trailing comma):

 {{{
 class MyModel(models.Model):
   trailing_comma = models.IntegerField(),
 }}}

 Django silently ignored the field, possibly leaving you wondering for a
 very long time what's going on.

 I suggest to add a warning to the models checker framework.

 If accepted, I'm willing to come up with an initial patch.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31771>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.26f36b172972eda40a23452bb1acefd1%40djangoproject.com.

Reply via email to