Skip to content
Snippets Groups Projects

django: add auto field default

Merged Ian Wienand requested to merge iwienand/django-mailman3:default-id into master

Since Django 3.2 [1] the model's implicit primary key can be specified. If it is unspecified it raises a warning. Specifying the default here should avoid this, and also avoids unnecessary migrations.

[1] https://docs.djangoproject.com/en/3.2/releases/3.2/#customizing-type-of-auto-created-primary-keys

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading