#25202: Referencing the User model missing parenthesis
--------------------------------------+--------------------
     Reporter:  jeffschulthies        |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Documentation         |    Version:  1.8
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 https://docs.djangoproject.com/en/dev/topics/auth/customizing
 /#referencing-the-user-model\

 Referencing the User model. The example is missing a parenthesis.

 from django.conf import settings
 from django.db import models

 class Article(models.Model):
     author = models.ForeignKey
         settings.AUTH_USER_MODEL,
         on_delete=models.CASCADE,
     )

 '''Corrected:
 '''from django.conf import settings
 from django.db import models

 class Article(models.Model):
     author = models.ForeignKey(
         settings.AUTH_USER_MODEL,
         on_delete=models.CASCADE,
     )

--
Ticket URL: <https://code.djangoproject.com/ticket/25202>
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/057.cf17c01cb73132c680b1de01cab121b9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to