[extensions-web/wip/api/v1: 1/15] settings: add DEFAULT_AUTO_FIELD




commit 5e04c9c5d7f9b1803b072dd60ed38cb9db7ce16b
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sun May 29 17:46:35 2022 +0400

    settings: add DEFAULT_AUTO_FIELD
    
    TODO: we must migrate to BigAutoField

 sweettooth/settings.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index d9b3a67..85e55fc 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -13,6 +13,8 @@ SITE_ROOT = os.path.dirname(os.path.abspath(__file__))
 
 BASE_DIR = os.path.dirname(SITE_ROOT)
 
+DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
+
 # Quick-start development settings - unsuitable for production
 # See https://docs.djangoproject.com/en/stable/howto/deployment/checklist/
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]