django-filter icon indicating copy to clipboard operation
django-filter copied to clipboard

migration documentation does not mention about changes related to range fields

Open KushGoyal opened this issue 6 years ago • 2 comments

I recently migrated to 2.0 and followed the migration guide. But it had not mentioned anything about _0 being changed to _after and _1 to _before for date and datetime range fields. Similarly changes for number range field from _0 to _min and _1 to _max.

KushGoyal avatar Jul 20 '18 14:07 KushGoyal

Good point. This is discussed here, but the changes aren't called specifically in their own section.

rpkilby avatar Jul 21 '18 00:07 rpkilby

I think this needs a specific section since it is a breaking change. In fact the docs are not very clear about it either. This is explained via examples. But for clarity I think it should be mentioned that lower bound is <field_name>_after and upper bound is <field_name>_before

KushGoyal avatar Jul 21 '18 06:07 KushGoyal