mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-21 23:43:11 +01:00
Set default autofield to be compatible for django 3.2
This commit is contained in:
parent
f53ee1366d
commit
66ed61ee6a
@ -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:
|
||||
|
@ -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 = [
|
||||
|
@ -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'
|
||||
|
3
setup.py
3
setup.py
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user