Changes between Version 5 and Version 6 of ModelSyntaxChangeInstructions


Ignore:
Timestamp:
08/25/2005 03:24:39 PM (10 years ago)
Author:
adrian
Comment:

A

Legend:

Unmodified
Added
Removed
Modified
  • ModelSyntaxChangeInstructions

    v5 v6  
    1010 * {{{rel_name}}} is no longer used for {{{ForeignKey}}}s. If your model has more than one {{{ForeignKey}}} to the same foreign model, differentiate the fields using the field name, not {{{rel_name}}}. See [http://www.djangoproject.com/documentation/models/m2o_recursive2/ Relating a model to another model more than once] for an example.
    1111 * {{{rel_name}}} is no longer used for {{{ManyToManyField}}}s. If your model has more than one {{{ManyToManyField}}} to the same foreign model, differentiate the fields using the field name, not {{{rel_name}}}. Also, give both of the {{{ManyToManyField}}}s a {{{singular}}} attribute, which defines the name of the related object in singular format. (This is an obscure case, but it's included here for completeness.)
     12 * Syntax for subclassing models ({{{add_fields}}}, {{{remove_fields}}}) has changed. See {{{tests/testapp/models/subclassing.py}}} for examples.
    1213
    1314== Examples ==
Back to Top