[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/04: services: patchwork: Set DEFAULT_AUTO_FIELD in settings.
From: |
guix-commits |
Subject: |
01/04: services: patchwork: Set DEFAULT_AUTO_FIELD in settings. |
Date: |
Wed, 2 Feb 2022 13:42:39 -0500 (EST) |
cbaines pushed a commit to branch master
in repository guix.
commit 108e7576c0bdef7430a44157a29bfba421a9dd92
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Wed Feb 2 18:27:10 2022 +0000
services: patchwork: Set DEFAULT_AUTO_FIELD in settings.
This resolves some warnings with Django 3.2.
This was added by upstream to the base settings
https://github.com/getpatchwork/patchwork/commit/43e5c4a0ace4e662c3e3973337445314abbe5247
* gnu/services/web.scm (patchwork-settings-module-compiler): Specify
DEFAULT_AUTO_FIELD in the settings module.
---
gnu/services/web.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gnu/services/web.scm b/gnu/services/web.scm
index e5cc6343b5..3fe58d98e6 100644
--- a/gnu/services/web.scm
+++ b/gnu/services/web.scm
@@ -1519,6 +1519,8 @@ ALLOWED_HOSTS = [
allowed-hosts))
"]
+DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
+
DEFAULT_FROM_EMAIL = '" #$default-from-email "'
SERVER_EMAIL = DEFAULT_FROM_EMAIL
NOTIFICATION_FROM_EMAIL = DEFAULT_FROM_EMAIL