﻿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
32733	DEFAULT_AUTO_FIELD feature leads `AbstractModel.check()` to fail with AttributeError	amureki	amureki	"Here is a simple code that shows different behaviour between 3.1 and 3.2:

{{{
from django.db import models
class MyAbstractModel(models.Model):
    class Meta:
        abstract = True

# behaviour in 3.1.10:
MyAbstractModel.check() # returns []

# behaviour in 3.2:
MyAbstractModel.check() # raises AttributeError: 'NoneType' object has no attribute 'auto_created' in `_check_default_pk`
}}}

It seems to me (but I might be wrong here) that this was not an intentional change (as the feature is all about default autofield), but rather a bug.
However, feel free to correct me!

Best,
Rust
"	Cleanup/optimization	closed	Database layer (models, ORM)	3.2	Release blocker	fixed		Johannes Maron	Ready for checkin	1	0	0	0	0	0
