﻿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
3774	Custom primary key allows to record a null or blank value	revil	nobody	"In a model I've used the following syntax for a custom primary key field:

	name=models.SlugField('Name',maxlength=12,primary_key=True,
		help_text='Descriptive name for the object')

But when I've entered in the admin interface and try to save an object without any value set in this field, django saves a record with blank name.

If I try to edit this object, the link to edit it is my main django project page.

Is this a bug or there is any explaination for this behavior?."		closed	Database layer (models, ORM)	dev		fixed	primary_key,custom primary key		Design decision needed	0	0	0	0	0	0
