Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1189 closed defect (fixed)

Extra Commas in Model Example

Reported by: Brian Ray <bray@…> Owned by: Jacob
Component: Documentation Version: dev
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: no UI/UX: no

Description

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):
            return self.name

Note, remove extra commas.

Change History (1)

comment:1 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(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