﻿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
16767	get_or_create does not raise error even though i didn't give a primary key to it	haandol	nobody	"here is the example model
{{{#!python
class User(models.Model):                                                                                             
    id = models.CharField(max_length=128, primary_key=True)
    email = models.EmailField(unique=True)                                                      
    created = models.DateField(auto_now_add=True)
}}}

and here is view code

{{{#!python
user, isnew = User.objects.get_or_create(email='setsquaretech@gmail.com')
}}}

I expected the prev view code raises a kind of database error, but it added a record on the database with 'empty primary key' normally."	Bug	closed	Database layer (models, ORM)	1.3	Normal	invalid	model, get_or_create	anssi.kaariainen@… adammckerlie@…	Accepted	0	0	0	0	0	0
