Ticket #23131: 23131.diff

File 23131.diff, 845 bytes (added by Tim Graham, 10 years ago)
  • docs/topics/migrations.txt

    diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt
    index ec462ea..23838aa 100644
    a b They will, however, have the same fields, relationships and ``Meta`` options  
    331331  when you access them in migrations, and you will NOT have any custom
    332332  constructors or instance methods. Plan appropriately!
    333333
     334References to functions in field options such as ``upload_to`` and
     335``limit_choices_to`` are serialized in migrations, so the functions will need
     336to be kept around for as long as there is a migration referencing them.
     337
    334338In addition, the base classes of the model are just stored as pointers,
    335339so you must always keep base classes around for as long as there is a migration
    336340that contains a reference to them. On the plus side, methods and managers
Back to Top