#1189 closed defect (fixed)
Extra Commas in Model Example
| Reported by: | 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.
Note:
See TracTickets
for help on using tickets.
(In [1865]) Fixed #1189 -- Fixed typo in docs/forms.txt 'Place' model example. Thanks, Brian Ray