Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#1189 closed defect (fixed)

Extra Commas in Model Example

Reported by: Brian Ray <bray@…> Owned by: jacob
Component: Documentation Version: master
Severity: minor Keywords: Place, Model, commas
Cc: bray@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


In root/django/trunk/docs/forms.txt change Place class to:

    class Place(meta.Model):
        name = meta.CharField(maxlength=100)
        address = meta.CharField(maxlength=100, blank=True)
        city = meta.CharField(maxlength=50, blank=True)
        state = meta.USStateField()
        zip_code = meta.CharField(maxlength=5, blank=True)
        place_type = meta.IntegerField(choices=PLACE_TYPES)
        class META:
            admin = meta.Admin()

        def __repr__(self):

Note, remove extra commas.

Change History (1)

comment:1 Changed 11 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [1865]) Fixed #1189 -- Fixed typo in docs/forms.txt 'Place' model example. Thanks, Brian Ray

Note: See TracTickets for help on using tickets.
Back to Top