silentsokolov / django-admin-rangefilter

A Django app that lets you filter data by date range and numeric range in the admin UI
MIT License
713 stars 106 forks source link

Fix django app config default warning #77

Closed huxaiphaer closed 2 years ago

huxaiphaer commented 2 years ago

What does this PR do ?

It solves the fix warnings default_app_config. Full error details :

RemovedInDjango41Warning: 'rangefilter' defines default_app_config = 'rangefilter.apps.RangeFilterConfig'. Django now detects this configuration automatically. You can remove default_app_config.

silentsokolov commented 2 years ago

if django.VERSION >= (3, 2): \ else is same if django.VERSION < (3, 2):