From e9962e832cf6561e4a71f487401c1abeb4c78c7b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org>
Date: Mon, 24 Jul 2023 09:57:13 +0900
Subject: [PATCH] added auto field

---
 env.example               | 2 +-
 institut/settings/base.py | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/env.example b/env.example
index 532dd92..2c2f3f5 100644
--- a/env.example
+++ b/env.example
@@ -1 +1 @@
-DATABASE_URL="postgresql://nastenka:nastenka@localhost:5432/postgres"
+DATABASE_URL="postgresql://institut:institut@localhost:5432/postgres"
diff --git a/institut/settings/base.py b/institut/settings/base.py
index b1348b3..fb98f3b 100644
--- a/institut/settings/base.py
+++ b/institut/settings/base.py
@@ -94,6 +94,8 @@ DATABASES = {
     "default": dj_database_url.config(conn_max_age=600, conn_health_checks=True)
 }
 
+DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
+
 
 # Password validation
 # https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
-- 
GitLab