Code

Opened 8 years ago

Closed 8 years ago

Last modified 7 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:

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.

Attachments (0)

Change History (1)

comment:1 Changed 8 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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.