From 2804e22bfec198fbef24c9ba3fc6bde2d9ec04f0 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 18 Jun 2010 02:04:10 +0000 Subject: [PATCH] [soc2010/query-refactor] Fix an amusing typo (didn't break anything, was just stupid). Thanks to Waldemar Kornewald for the report. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/query-refactor@13357 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/contenttypes/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/contenttypes/models.py b/django/contrib/contenttypes/models.py index 862284ac0ca4e..6138f7b8c2153 100644 --- a/django/contrib/contenttypes/models.py +++ b/django/contrib/contenttypes/models.py @@ -72,7 +72,7 @@ def _add_to_cache(self, using, ct): self.__class__._cache.setdefault(using, {})[ct.id] = ct class ContentType(models.Model): - id = models.NativeAutoField(primary_key=100) + id = models.NativeAutoField(primary_key=True) name = models.CharField(max_length=100) app_label = models.CharField(max_length=100) model = models.CharField(_('python model class name'), max_length=100)