Changes between Version 208 and Version 209 of BackwardsIncompatibleChanges
- Timestamp:
- Aug 5, 2008, 1:56:01 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BackwardsIncompatibleChanges
v208 v209 877 877 # in admin.py 878 878 879 880 881 879 882 class MyModelAdmin(admin.ModelAdmin): 880 883 class Media: … … 1075 1078 1076 1079 Previously !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 1083 Before [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 1086 authors = Author.objects.filter(id__in=author_ids.split(',')) 1087 }}} 1088 then your lookup will fail if author_ids is an empty string, as of [8131].