Code

Changes between Version 3 and Version 4 of ModelSyntaxChangeInstructions


Ignore:
Timestamp:
08/25/05 13:10:41 (9 years ago)
Author:
adrian
Comment:

Added some clarifications

Legend:

Unmodified
Added
Removed
Modified
  • ModelSyntaxChangeInstructions

    v3 v4  
    5353 
    5454 * {{{bar}}} and {{{sites}}} now have explicit names, and {{{admin.fields}}} was changed to use {{{bar}}} instead of {{{bar_id}}}. 
    55  * {{{ordering}}} was also changed to use the explicit name {{{bar}}} instead of {{{bar_id}}}. 
     55 * {{{ordering}}} was also changed to use the explicit name {{{bar}}} instead of {{{bar_id}}}. {{{bar_id}}} isn't used anywhere anymore; always use the explicit field name as defined in the model. 
     56 * {{{"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. 
    5657 * 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"}}}. 
    5758 * Don't forget to remove the commas after each {{{Field}}}, because they're class attributes instead of list elements now.