Changes between Version 9 and Version 10 of ModelSyntaxChangeInstructions


Ignore:
Timestamp:
08/26/2005 02:39:28 AM (10 years ago)
Author:
anonymous
Comment:

'fields' was a tuple, not a list

Legend:

Unmodified
Added
Removed
Modified
  • ModelSyntaxChangeInstructions

    v9 v10  
    6767 * {{{"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.
    6868 * 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 list elements now.
     69 * Don't forget to remove the commas after each {{{Field}}}, because they're class attributes instead of tuple elements now.
    7070 * Custom methods (such as {{{__repr__()}}} here) still go at the class level. They haven't changed.
Back to Top