From b13947bb774676918d3c81578d454703188c09e1 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 31 Jan 2010 15:29:49 -0600 Subject: Kill a no longer necessary hack in the admin Signed-off-by: Dan McGee --- main/models.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'main/models.py') diff --git a/main/models.py b/main/models.py index 9e572cee..336f0ecf 100644 --- a/main/models.py +++ b/main/models.py @@ -182,20 +182,6 @@ class Meta: def __unicode__(self): return self.pkgname - # According to http://code.djangoproject.com/ticket/2583 we have "bad data" - # The problem is the queries constructed by the admin to retrieve foreign - # keys are empty. This allows us to display items in the list but kills - # sorting - def _reponame(self): - return self.repo.name - _reponame.short_description='Repo' - def _archname(self): - return self.arch.name - _archname.short_description='Arch' - def _maintainername(self): - return self.maintainer.username - _maintainername.short_description = 'Maintainer' - def get_absolute_url(self): return '/packages/%s/%s/%s/' % (self.repo.name.lower(), self.arch.name, self.pkgname) -- cgit v1.2.3-54-g00ecf