﻿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
18201	smallint and tinyint fields + auto increment	michael.frere@…	nobody	"Hi,

I tried to create custom model fields, taking inspiration from the following Django snippets:

http://djangosnippets.org/snippets/1244/
http://djangosnippets.org/snippets/2513/

I managed to get standard TINYINT fields and I can make them UNSIGNED aswell (using MySQL)
However when I try to make a custom model from an AutoField and make it a primary key, referenced in other tables as a foreign key. Django keeps using INT(11) for the foreign keys upon South migration instead of the expected TINYINT (tried with SMALLINT as well).

Could you help me to get this working or maybe implement some sort of Tiny/Small/BigAutoField in some future Django release? I'll attach my current code (python script)

Cheers,
Michael"	Bug	closed	Database layer (models, ORM)	1.4	Normal	duplicate			Accepted	0	0	0	0	0	0
