Changes between Version 55 and Version 56 of RemovingTheMagic
- Timestamp:
- Jan 27, 2006, 9:24:15 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RemovingTheMagic
v55 v56 18 18 * All automatic pluralization is gone. 19 19 * 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. 21 21 22 22 == Database changes you'll need to make == 23 24 To 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. 23 25 24 26 === Rename core database tables === … … 117 119 === Database table-naming scheme has been changed === 118 120 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}}}.121 Database table names formerly were created by joining the {{{app_label}}} and {{{module_name}}}. Example: {{{polls_polls}}}. 122 123 Because 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}}}. 122 124 123 125 As always, this behavior can be overridden on a per-model basis by specifying the {{{db_table}}} attribute in {{{class Meta}}} in your model.