Changes between Version 5 and Version 6 of DataModelPitfalls


Ignore:
Timestamp:
08/11/05 10:27:28 (10 years ago)
Author:
hugo <gb@…>
Comment:

added hint on ManyToManyField vs. ManyToMany

Legend:

Unmodified
Added
Removed
Modified
  • DataModelPitfalls

    v5 v6  
    11= Common Pitfalls - Data Models =
     2
     3== ManyToManyField ==
     4
     5=== name likeness of helper classes and field classes ===
     6
     7==== Warning ====
     8The field class is ManyToManyField, not ManyToMany - the latter is just the class of the relation that is stored with the field, in the model you need to use the field class.
     9
     10==== Symptoms ====
     11A traceback that talks about __init__ getting 2 instead of 3 required positional parameters in the line of your model where the fields tuple is built.
    212
    313== Foreign Keys ==
Back to Top