Changes between Version 220 and Version 221 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
Aug 8, 2008, 4:22:49 PM (16 years ago)
Author:
Jacob
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v220 v221  
    7171 * [8223] Aug 6, 2008 [#Signalrefactoring Signal/dispatch refactoring]
    7272 * [8230] Aug 8, 2008 [#Peruvianlocalflavorchange Peruvian localflavor change]
    73 
     73 * [8244] Aug 8, 2008 [#Filestoragerefactoring File storage refactoring]
    7474
    7575== Changed 'spaceless' template tag to remove all spaces ==
     
    573573The 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:
    574574
     575
    575576 * http://code.google.com/p/django-mssql/
    576577 * http://code.google.com/p/django-pyodbc/
     
    10791080
    10801081In 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
     1087The 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
     1091class FileContent(models.Model):
     1092    content = models.FileField(upload_to='content')
     1093}}}
     1094
     1095Here'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` ||
Back to Top