Changes between Version 9 and Version 10 of ModelSyntaxChangeInstructions
- Timestamp:
- Aug 26, 2005, 2:39:28 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ModelSyntaxChangeInstructions
v9 v10 67 67 * {{{"sites"}}} is the explicit field name for the {{{Sites}}} many-to-many relationship. Previously, Django calculated this automatically by using the {{{module_name}}} of the related model by default, or {{{rel_name}}} if it was given. 68 68 * 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"}}}. 69 * Don't forget to remove the commas after each {{{Field}}}, because they're class attributes instead of listelements now.69 * Don't forget to remove the commas after each {{{Field}}}, because they're class attributes instead of tuple elements now. 70 70 * Custom methods (such as {{{__repr__()}}} here) still go at the class level. They haven't changed.