diff options
author | Dan McGee <dan@archlinux.org> | 2010-12-22 02:02:22 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-08 18:49:37 +0100 |
commit | c18cd21e536592b6ed482126ee423f38b9ac9257 (patch) | |
tree | 98846307688f44114f0721f91cb6e43e49b65fd3 | |
parent | 8d7941c1ddc40623d7050bb0809453603f6ccad9 (diff) | |
download | archweb-c18cd21e536592b6ed482126ee423f38b9ac9257.tar.gz archweb-c18cd21e536592b6ed482126ee423f38b9ac9257.tar.xz |
Remove automatic ID column definitions
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | main/models.py | 9 | ||||
-rw-r--r-- | news/models.py | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/main/models.py b/main/models.py index 8858b17..6128215 100644 --- a/main/models.py +++ b/main/models.py @@ -9,7 +9,6 @@ from itertools import groupby from operator import attrgetter class UserProfile(models.Model): - id = models.AutoField(primary_key=True) # not technically needed notify = models.BooleanField( "Send notifications", default=True, @@ -49,7 +48,6 @@ class PackageManager(models.Manager): class Donor(models.Model): - id = models.AutoField(primary_key=True) name = models.CharField(max_length=255, unique=True) visible = models.BooleanField(default=True, help_text="Should we show this donor on the public page?") @@ -62,7 +60,6 @@ class Donor(models.Model): ordering = ['name'] class Arch(models.Model): - id = models.AutoField(primary_key=True) name = models.CharField(max_length=255, unique=True) agnostic = models.BooleanField(default=False, help_text="Is this architecture non-platform specific?") @@ -79,7 +76,6 @@ class Arch(models.Model): verbose_name_plural = 'arches' class Repo(models.Model): - id = models.AutoField(primary_key=True) name = models.CharField(max_length=255, unique=True) testing = models.BooleanField(default=False, help_text="Is this repo meant for package testing?") @@ -100,7 +96,6 @@ class Repo(models.Model): verbose_name_plural = 'repos' class Package(models.Model): - id = models.AutoField(primary_key=True) repo = models.ForeignKey(Repo, related_name="packages") arch = models.ForeignKey(Arch, related_name="packages") pkgname = models.CharField(max_length=255, db_index=True) @@ -308,14 +303,12 @@ class Signoff(models.Model): packager = models.ForeignKey(User) class PackageFile(models.Model): - id = models.AutoField(primary_key=True) pkg = models.ForeignKey('Package') path = models.CharField(max_length=255) class Meta: db_table = 'package_files' class PackageDepend(models.Model): - id = models.AutoField(primary_key=True) pkg = models.ForeignKey('Package') depname = models.CharField(db_index=True, max_length=255) depvcmp = models.CharField(max_length=255) @@ -323,7 +316,6 @@ class PackageDepend(models.Model): db_table = 'package_depends' class Todolist(models.Model): - id = models.AutoField(primary_key=True) creator = models.ForeignKey(User) name = models.CharField(max_length=255) description = models.TextField() @@ -351,7 +343,6 @@ class Todolist(models.Model): return '/todo/%i/' % self.id class TodolistPkg(models.Model): - id = models.AutoField(primary_key=True) list = models.ForeignKey('Todolist') pkg = models.ForeignKey('Package') complete = models.BooleanField(default=False) diff --git a/news/models.py b/news/models.py index e2486c9..c2d644b 100644 --- a/news/models.py +++ b/news/models.py @@ -2,7 +2,6 @@ from django.db import models from django.contrib.auth.models import User class News(models.Model): - id = models.AutoField(primary_key=True) slug = models.SlugField(max_length=255, unique=True) author = models.ForeignKey(User, related_name='news_author') postdate = models.DateTimeField("post date", auto_now_add=True, db_index=True) |