diff options
author | eliott <eliott@cactuswax.net> | 2008-03-08 09:19:58 +0100 |
---|---|---|
committer | eliott <eliott@cactuswax.net> | 2008-03-08 09:19:58 +0100 |
commit | 8019319a4fe5f52779f9f2531e3aa24aacbe43f5 (patch) | |
tree | 7ddac0cd653680d8df06127d9c0622201a2e1145 /main | |
parent | 9b7b5122544283fc32d81d785e94c5f4aacc0109 (diff) | |
download | archweb-8019319a4fe5f52779f9f2531e3aa24aacbe43f5.tar.gz archweb-8019319a4fe5f52779f9f2531e3aa24aacbe43f5.tar.xz |
renamed donator model to donor.
remove category model
Diffstat (limited to 'main')
-rw-r--r-- | main/models.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/main/models.py b/main/models.py index a246e33..db63d59 100644 --- a/main/models.py +++ b/main/models.py @@ -75,7 +75,7 @@ class Mirror(models.Model): search_fields = ('domain') pass -class Donator(models.Model): +class Donor(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(maxlength=255) def __str__(self): @@ -102,13 +102,6 @@ class News(models.Model): def get_absolute_url(self): return '/news/%i/' % self.id -class Category(models.Model): - id = models.AutoField(primary_key=True) - category = models.CharField(maxlength=255) - class Meta: - db_table = 'categories' - verbose_name_plural = 'categories' - class Repo(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(maxlength=255) @@ -127,7 +120,6 @@ class Package(models.Model): id = models.AutoField(primary_key=True) repo = models.ForeignKey(Repo) maintainer = models.ForeignKey(User, related_name='package_maintainer') - category = models.ForeignKey(Category) needupdate = models.BooleanField(default=False) pkgname = models.CharField(maxlength=255) pkgver = models.CharField(maxlength=255) |