﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32741	Tutorial Part 2 throws models.W042 warnings when making migrations	Katie McLaughlin	nobody	"Changes in Django 2.2 mean that the auto-created primary key changes (https://docs.djangoproject.com/en/3.2/releases/3.2/#customizing-type-of-auto-created-primary-keys) throw the associated warnings, as the Tutorial Part 2 doesn't adjust for these. 

Reproduction: 

 * in a new virtualenv, `pip install django==3.2.2`
 * generate a new template project `django-admin startproject mysite .`
   * confirm the generated `settings.py` doesn't mention DEFAULT_AUTO_FIELD
 * run though the tutorial, up to and including https://docs.djangoproject.com/en/3.2/intro/tutorial02/#creating-models
 * attempt to `python manage.py makemigrations polls`
 * get errors

{{{
System check identified some issues:

WARNINGS:
polls.Choice: (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 PollsConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
polls.Question: (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 PollsConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
Migrations for 'polls':
  polls/migrations/0001_initial.py
    - Create model Question
    - Create model Choice
}}}"	Cleanup/optimization	closed	Documentation	3.2	Normal	worksforme			Unreviewed	0	0	0	0	1	0
