Changes between Version 4 and Version 5 of ModelSyntaxChangeInstructions
- Timestamp:
- Aug 25, 2005, 3:16:38 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ModelSyntaxChangeInstructions
v4 v5 30 30 ), 31 31 ) 32 33 def __repr__(self): 34 return self.first_name 32 35 }}} 33 36 … … 48 51 ), 49 52 ) 53 54 def __repr__(self): 55 return self.first_name 50 56 }}} 51 57 … … 57 63 * The {{{verbose_name}}} is now an optional first argument to {{{Field}}}s. For {{{ForeignKey}}}s, {{{ManyToManyField}}}s and {{{OneToOneField}}}s, use a named argument: {{{verbose_name="foo"}}}. 58 64 * Don't forget to remove the commas after each {{{Field}}}, because they're class attributes instead of list elements now. 65 * Custom methods (such as {{{__repr__()}}} here) still go at the class level. They haven't changed.