summaryrefslogtreecommitdiffstats
path: root/packages/admin.py
AgeCommit message (Collapse)AuthorFilesLines
2013-11-27Remove date_hierarchy from several package admin viewsDan McGee1-8/+4
I was never using this and it adds some pretty substantial overhead to each render of the admin page, so toss it. Add the simple date filter to the sidebar instead. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-11-07Django 1.6 upgrade, deprecation cleanupDan McGee1-2/+2
PendingDeprecationWarning: `queryset` method should be renamed `get_queryset` Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-23Override the default admin queryset for some modelsDan McGee1-0/+10
Because some attributes are optional or otherwise not auto-magically picked up by Django, we can help the performance of loading these pages a lot by forcing a select_related() on the queryset used by the admin. For something like signoff_specifications, this drops the query count from ~107 to 9 queries. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-09Migrate flag request version info to new formatDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-01Use a raw ID field for package Update packageDan McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-02Add new package Update modelDan McGee1-1/+13
This will be used to track updates to package as we do them during reporead. By storing enough relevant fields from the package object, we should be able to produce a useful report on a regular basis of what has been happening in the repositories. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-26Add repo to flag request admin columnsDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-11Add old version string to saved flag requestsDan McGee1-2/+2
This makes it easier to match up a flag request with the package state at the time of flagging, and might also help to determine if flagging actions were legit. We only store it if it is the same across all packages to be marked. Also, move the various database write activities when flagging packages into a single transaction. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-12Use full version in signoff admin list viewDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-12Add signoff model admin interfaceDan McGee1-3/+25
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-08Add a new FlagRequest modelDan McGee1-1/+10
This will be used to store all of the submitted data we get via flag out of date forms on the website. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-22Admin setup tweaksDan McGee1-1/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-19Add a PackageRelation adminDan McGee1-0/+11
Signed-off-by: Dan McGee <dan@archlinux.org>