dev-python/django-picklefield: tests/settings.py edit fix

This commit is contained in:
Alarig Le Lay 2023-03-22 00:19:48 +01:00
parent 360c6c2300
commit 9bfda8ca95
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC

View file

@ -20,7 +20,7 @@ distutils_enable_tests unittest
src_prepare() {
# Fix for >=django-3.2
echo "DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'" >> tests/settings.py || die
use test && (echo "DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'" >> tests/settings.py || die)
distutils-r1_src_prepare
}