Set default autofield to be compatible for django 3.2

This commit is contained in:
Garret Wassermann 2021-09-17 10:09:20 -04:00
parent f53ee1366d
commit 66ed61ee6a
5 changed files with 12 additions and 3 deletions

View File

@ -214,6 +214,10 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# your own projects unless you make your own fixtures
FIXTURE_DIRS = [os.path.join(BASE_DIR, 'fixtures')]
# for Django 3.2+, set default for autofields:
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
try:
from .local_settings import *
except ImportError:

View File

@ -13,7 +13,7 @@ project_root = os.path.dirname(here)
NAME = 'django-helpdesk-demodesk'
DESCRIPTION = 'A demo Django project using django-helpdesk'
README = open(os.path.join(here, 'README.rst')).read()
VERSION = '0.3.0b3'
VERSION = '0.3.0b4'
#VERSION = open(os.path.join(project_root, 'VERSION')).read().strip()
AUTHOR = 'django-helpdesk team'
URL = 'https://github.com/django-helpdesk/django-helpdesk'
@ -24,7 +24,8 @@ CLASSIFIERS = ['Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.8',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1']
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2']
KEYWORDS = []
PACKAGES = ['demodesk']
REQUIREMENTS = [

View File

@ -4,3 +4,6 @@ from django.apps import AppConfig
class HelpdeskConfig(AppConfig):
name = 'helpdesk'
verbose_name = "Helpdesk"
# for Django 3.2 support:
# see: https://docs.djangoproject.com/en/3.2/ref/applications/#django.apps.AppConfig.default_auto_field
default_auto_field = 'django.db.models.AutoField'

View File

@ -6,7 +6,7 @@ from distutils.util import convert_path
from fnmatch import fnmatchcase
from setuptools import setup, find_packages
version = '0.3.0b3'
version = '0.3.0b4'
# Provided as an attribute, so you can append to these instead
# of replicating them:
@ -133,6 +133,7 @@ setup(
'Framework :: Django :: 2.2',
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Environment :: Web Environment",
"Operating System :: OS Independent",
"Intended Audience :: Customer Service",