Changes between Version 224 and Version 225 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
Aug 10, 2008, 4:16:09 PM (16 years ago)
Author:
Gary Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v224 v225  
    7373 * [8244] Aug 8, 2008 [#Filestoragerefactoring File storage refactoring]
    7474 * [8273] Aug 9, 2008 [#save_addandsave_changeRemovedfromModelAdmin save_add and save_change Removed from ModelAdmin]
     75 * [8291] Aug. 1, 2008 [#Removedseveralmoredeprecatedfeaturesfor1.0 Removed several more deprecated features for 1.0]
    7576
    7677== Changed 'spaceless' template tag to remove all spaces ==
     
    10311032Before [8131], `MyModel.objects.filter(intfield__in=[''])` would return an empty `QuerySet`, where `intfield` represents an `IntegerField` or similar on `MyModel`. For example, if you had been unpacking a comma-separated list of IDs into a lookup such as:
    10321033{{{
     1034
    10331035#!python
    10341036authors = Author.objects.filter(id__in=author_ids.split(','))
     
    11221124```save_form``` due to the new behavior which is to return unsaved instances
    11231125as opposed to saved instances in both ```save_form``` and ```save_formset```.
     1126
     1127== Removed several more deprecated features for 1.0 ==
     1128
     1129In [8291], several deprecated features were removed:
     1130 * Support for representing files as strings was removed. Use `django.core.files.base.ContentFile` instead.
     1131 * Support for representing uploaded files as dictionaries was removed. Use `django.core.files.uploadedfile.SimpleUploadedFile` instead.
     1132 * The `filename`, `file_name`, `file_size`, and `chuck` properties of `UploadedFile` were removed. Use the `name`, `name`, `size`, and `chunks` properties instead, respectively.
     1133 * The `get_FIELD_filename`, `get_FIELD_url`, `get_FIELD_size`, and `save_FIELD_file` methods for Models with `FileField` fields were removed. Instead, use the `path`, `url`, and `size` attributes and `save` method on the field itself, respectively.
     1134 * The `get_FIELD_width` and `get_FIELD_height` methods for Models with `ImageField` fields were removed. Use the `width` and `height` attributes on the field itself instead.
     1135 * The dispatcher `connect`, `disconnect`, `send`, and `sendExact` functions were removed. Use the signal object's own `connect`, `disconnect`, `send`, and `send` methods instead, respectively.
     1136 * The `form_for_model` and `form_for_instance` functions were removed. Use a `ModelForm` subclass instead.
     1137 * Support for importing `django.newforms` was removed. Use `django.forms` instead.
     1138 * Support for importing `django.utils.images` was removed. Use `django.core.files.images` instead.
     1139 * Support for the `follow` argument in the `create_object` and `update_object` generic views was removed. Use the `django.forms` package and the new `form_class` argument instead.
Back to Top