Commit Graph

14 Commits

Author SHA1 Message Date
Giancarlo Razzolini
06aedb9579
packages/admin: Fix the syntax for queryset
Django 1.7 changed the method name to get_queryset.
2017-09-01 11:47:59 -03:00
Dan McGee
429736f7e9 Remove date_hierarchy from several package admin views
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-27 17:05:02 -05:00
Dan McGee
d54df175a8 Django 1.6 upgrade, deprecation cleanup
PendingDeprecationWarning: `queryset` method should be renamed `get_queryset`

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-11-06 20:55:48 -06:00
Dan McGee
85dc9d6df9 Override the default admin queryset for some models
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>
2013-01-22 17:20:41 -07:00
Dan McGee
b425b192e1 Migrate flag request version info to new format
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-08 22:21:05 -05:00
Dan McGee
7185967226 Use a raw ID field for package Update package
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-31 20:01:03 -05:00
Dan McGee
43b5c29b3d Add new package Update model
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-07-01 20:21:23 -05:00
Dan McGee
bb570809f1 Add repo to flag request admin columns
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-26 14:40:04 -06:00
Dan McGee
b2b5c1a064 Add old version string to saved flag requests
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>
2012-01-10 23:31:11 -06:00
Dan McGee
99eada1722 Use full version in signoff admin list view
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-12 09:58:46 -06:00
Dan McGee
78f23956e0 Add signoff model admin interface
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-12 07:03:36 -06:00
Dan McGee
3e094a548f Add a new FlagRequest model
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-12-08 15:02:11 -06:00
Dan McGee
c5b370f432 Admin setup tweaks
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-22 16:42:06 -05:00
Dan McGee
eb97b0400b Add a PackageRelation admin
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-18 23:55:11 -06:00