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:
parent
2d7f7ed9dd
commit
ba197a4b65
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue