Changes between Version 55 and Version 56 of RemovingTheMagic


Ignore:
Timestamp:
Jan 27, 2006, 9:24:15 AM (19 years ago)
Author:
Adrian Holovaty
Comment:

Small cleanups

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v55 v56  
    1818 * All automatic pluralization is gone.
    1919 * The lookup API is changing so that many methods will become attributes. For example, {{{choice.get_poll()}}} is now {{{choice.poll}}}.
    20  * Various packages, such as the Django template system (previously in {{{django.core.template}}}, have been moved around to make importing less verbose and easier to remember.
     20 * Various packages, such as the Django template system (previously in {{{django.core.template}}}), have been moved around to make importing less verbose and easier to remember.
    2121
    2222== Database changes you'll need to make ==
     23
     24To upgrade from a previous Django installation, you'll need to make some database changes. Obviously, this doesn't apply if you're starting from scratch.
    2325
    2426=== Rename core database tables ===
     
    117119=== Database table-naming scheme has been changed ===
    118120
    119 Database table names formerly were created by joining the app_label and module_name. Example: {{{polls_polls}}}.
    120 
    121 Because there's no longer any pluralization, database table names are now formed by joining the app_label and model name (singular). Example: {{{polls_poll}}}.
     121Database table names formerly were created by joining the {{{app_label}}} and {{{module_name}}}. Example: {{{polls_polls}}}.
     122
     123Because there's no longer any concept of {{{module_name}}}, database table names are now formed by joining the {{{app_label}}} and model class name (lower case). Example: {{{polls_poll}}}.
    122124
    123125As always, this behavior can be overridden on a per-model basis by specifying the {{{db_table}}} attribute in {{{class Meta}}} in your model.
Back to Top