Changes between Version 208 and Version 209 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
08/05/2008 01:56:01 PM (7 years ago)
Author:
trevor
Comment:

backwards incompatible change in [8131]

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v208 v209  
    877877# in admin.py
    878878
     879
     880
     881
    879882class MyModelAdmin(admin.ModelAdmin):
    880883    class Media:
     
    10751078
    10761079Previously !NoReverseMatch exceptions were silenced in the `{% url %}` tag.  This is very rarely useful, and usually just produced difficult to find bugs, and so was changed in [8211].  See #8031.
     1080
     1081== `intfield__in=['']` filter lookups no longer work ==
     1082
     1083Before [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:
     1084{{{
     1085#!python
     1086authors = Author.objects.filter(id__in=author_ids.split(','))
     1087}}}
     1088then your lookup will fail if author_ids is an empty string, as of [8131].
Back to Top