Changes between Version 220 and Version 221 of BackwardsIncompatibleChanges
- Timestamp:
- Aug 8, 2008, 4:22:49 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BackwardsIncompatibleChanges
v220 v221 71 71 * [8223] Aug 6, 2008 [#Signalrefactoring Signal/dispatch refactoring] 72 72 * [8230] Aug 8, 2008 [#Peruvianlocalflavorchange Peruvian localflavor change] 73 73 * [8244] Aug 8, 2008 [#Filestoragerefactoring File storage refactoring] 74 74 75 75 == Changed 'spaceless' template tag to remove all spaces == … … 573 573 The unmaintained `ado_mssql` backend was removed in [7364]. Since external database backends can be used with Django, people wishing to contribute to or utilise Django support on Microsoft's SQL Server should have a look at external projects such as: 574 574 575 575 576 * http://code.google.com/p/django-mssql/ 576 577 * http://code.google.com/p/django-pyodbc/ … … 1079 1080 1080 1081 In 2007, Peru changed from departments to regions for their local district names. In [8230], Django's Peruvian localflavor was updated to reflect this change. Previous uses of the `PEDepartmentSelect` class (from `django.contrib.localflavor.pe.forms`) should be changed to use `PERegionSelect`. 1082 1083 == File storage refactoring == 1084 1085 [8244] refactored Django's file storage system. Detailed notes of the changes can be found at FileStorageRefactor; see specifically the [http://code.djangoproject.com/wiki/FileStorageRefactor#Backwards-incompatibilechanges list of backwards-incompatibe changes]. 1086 1087 The biggest changes you'll notice are that the `Model._get_FIELD_*` methods have been deprecated in favor of attributes on the new file attribute. That is, given a model like this: 1088 1089 {{{ 1090 #!python 1091 class FileContent(models.Model): 1092 content = models.FileField(upload_to='content') 1093 }}} 1094 1095 Here's how the changes map out: 1096 1097 || '''Old''' || '''New''' || 1098 || `instance.get_content_filename()` || `instance.content.path` || 1099 || `instance.get_content_url()` || `instance.content.url` || 1100 || `instance.get_content_size()` || `instance.content.size` || 1101 || `instance.save_content_file()` || `instance.content.save()` || 1102 || `instance.get_content_width()` || `instance.content.width` || 1103 || `instance.get_content_height()` || `instance.content.height` ||