-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers
Description
Current documentation says that when we break a model down into parts, and we need to define the partsPKs explicitly, we can use eitherIntegerFieldorAutoField; it even prefers IntegerField` because these fields should, in principle, not have generated values put into them (they should have values copied from those generated for the main model), and that is a little more explicit.
However, this creates issues with the Django admin -- IntegerFields show up as editable, and even required, in the admin for the main model. Changing them to AutoField makes them go away, and probably sets some other things straight (e.g. marks them as serialized=False).
The documentation needs to be changed.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers