﻿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
17007	Fixture documentation should include non-numeric PK information	Tim Chase <django.ticket@…>	nobody	"The documentation at https://docs.djangoproject.com/en/dev/howto/initial-data/#providing-initial-data-with-fixtures only describes the general/default case where the PK/id is numeric.  It would be nice to include documentation for the cases where this is non-numeric.  E.g


{{{
class MyModel(Model):
  id = CharField(primary=True, max_length=3)
  desc = CharField(max_length=50)
}}}

The fixture should be

{{{
[
{""pk"": ""BLU"",
 ""model"": ""myapp.mymodel"",
 ""fields"": {""description"": ""Blue""}
}
]
}}}
instead of

{{{
[
{""pk"": 0,
 ""model"": ""myapp.mymodel"",
 ""fields"": {""id""=""BLU"", ""description"": ""Blue""}
}
]
}}}

I had to figure this out through trial & error, and documenting it here may save others the trouble."	New feature	closed	Documentation	dev	Normal	fixed	fixture, initial data		Accepted	0	0	0	0	0	0
