﻿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
10350	Model with one field and field is unique -> field data become pk	laundro@…	nobody	"{{{
class Subscriber(models.Model):
    email = models.EmailField(unique = True)

>>> s = Subscriber(email = ""test@test.be"")
>>> s.save()
ValueError: invalid literal for int() with base 10: 'test@test.be'
}}}

It appears the email field is automatically being used as the pk field, where the Django docs specifically state that:
By default, Django gives each model the following field:
id = models.AutoField(primary_key=True)

(see http://docs.djangoproject.com/en/dev/topics/db/models/#id1)."		closed	Database layer (models, ORM)	1.0		worksforme	unique pk		Unreviewed	0	0	0	0	0	0
