﻿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
18093	AnonymousUser should have a 'pk' attribute	Chris Lamb		"I like the ""pk"" field on models as it means I can refer to the primary key of any instance without having to know some implementation detail about the model.

However, this idea breaks down with the AnonymousUser pseudo-model; it has an id element (of None) but it has no pk element. This requires some special-casing which I would like to be rid of.

Sure, it's not a real model. But if AnonymousUser has an 'id' element and can exist where a ""real"" auth.User may exist, it might as well have an 'pk' too.

Patch is trivial."	New feature	closed	contrib.auth	dev	Normal	fixed			Ready for checkin	1	0	0	0	1	0
