mailman3-web needs DEFAULT_AUTO_FIELD setting

Bug #2060753 reported by Marco van Zwetselaar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mailman-suite (Ubuntu)
New
Undecided
Unassigned

Bug Description

Installation of mail3man-web (0+20200530-2.1) in mantic produces a list of 14 warnings that look like this:

    WARNINGS:
    django_mailman3.MailDomain: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
     HINT: Configure the DEFAULT_AUTO_FIELD setting or the DjangoMailman3Config.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.

This would only be a minor nuisance, except that the application sends this list of warnings in an email to the site administrator _once every minute_.

The issue can be resolved by adding this line to /usr/share/mailman3-web/settings.py (patch attached):

    DEFAULT_AUTO_FIELD='django.db.models.AutoField'

Tags: patch
Revision history for this message
Marco van Zwetselaar (zwets) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "auto_field.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.