dj32: update use of default_app_config (#74843)

Use a version condition as it's still necessary for Django 2.x.
This commit is contained in:
Benjamin Dauvergne 2023-02-24 17:26:22 +01:00
parent 2d7f7ed9dd
commit ba197a4b65
3 changed files with 12 additions and 3 deletions

View File

@ -14,4 +14,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
default_app_config = 'zoo.zoo_data.apps.ZooDataConfig'
import django
if django.VERSION < (3, 2):
default_app_config = 'zoo.zoo_data.apps.ZooDataConfig'

View File

@ -14,4 +14,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
default_app_config = 'zoo.zoo_meta.apps.ZooMetaAppConfig'
import django
if django.VERSION < (3, 2):
default_app_config = 'zoo.zoo_meta.apps.ZooMetaAppConfig'

View File

@ -14,4 +14,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
default_app_config = 'zoo.zoo_nanterre.apps.ZooNanterreConfig'
import django
if django.VERSION < (3, 2):
default_app_config = 'zoo.zoo_nanterre.apps.ZooNanterreConfig'