Commit Graph

31 Commits

Author SHA1 Message Date
Dan McGee
d21d8be018 UserProfile model and fields shuffle
Move this model into the devel/ application, and move the PGPKeyField
which is used only by these models into the application as well. This
involves updating some old migrations along the way to ensure we don't
reference a field class that no longer exists.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-20 11:15:03 -05:00
Dan McGee
c2e84a787a Various small admin touchups
* Don't capitalize things in verbose_name, Django does this
  automatically and uses title case
* Add overrides for IP, URL, ISO, etc.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-07 13:11:52 -06:00
Dan McGee
bc0e9d3e85 Add created column to Donor model
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-01 16:56:40 -05:00
Dan McGee
d8022fd572 Add a "Report a Bug" link
We need Flyspray category data to make this more useful, and we can
prefill the Subject and Category fields (along with putting it on the
right project). Implements FS#23751.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-18 23:00:30 -05:00
Dan McGee
7d08d59280 Show a few more fields in package admin
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:01:51 -05:00
Dan McGee
5f7fbcb713 Add basic todo list admin site
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-23 13:01:21 -05:00
Dan McGee
3f6aaf6ebe Add 'staging' field to Repo model
First steps towards implementing FS#23298.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-22 21:41:33 -05:00
Dan McGee
77f65bdc0c Allow donors to be invisible
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-01 13:05:22 -05:00
Dan McGee
5c78ad7469 Add metadata to Arch table
Add a column flagging whether this architecture is agnostic (e.g. 'any') or
not. This will remove the hardcoded name checks we have all over the place
and replace it with a boolean.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08 10:50:55 -05:00
Dan McGee
3491a02282 Remove explicit ordering from admin specs
The default ordering from the model itself will apply so no need to specify
it here as well.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08 09:34:32 -05:00
Dan McGee
7dba848eaf Move mirror models out of main app
South actually makes this relatively painless if you get everything right,
so might as well start getting these out of the legacy main application to
eventually eliminate models being separate from their views.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-06 12:01:46 -05:00
Dan McGee
94fe9fc548 Add more metadata to repo model
Things like the flyspray project ID and SVN repo path should go here rather
than being hardcoded in the code.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-25 14:04:23 -05:00
Thayer Williams
958bc63113 Add alphabetical sorting to mirrorlists
Also unify the sorting at the model-level for donors and remove the now
duplicate sorting in the admin for mirrors.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:43 -05:00
Dan McGee
ec59440262 Remove Arch-Based Projects
Add a link to the wiki instead. Also remove ExternalProject model and
associated dealings.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-18 23:27:27 -05:00
Dan McGee
1709def7f1 Remove International Communities
Add link to wiki instead. Also remove AltForum model and associated
dealings.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-18 23:14:53 -05:00
Dan McGee
8e6bb3d794 Remove Press model and admin
A link to the wiki was already present, but the model and admin had not
been removed.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-18 22:54:10 -05:00
Dan McGee
fe832ea845 Move package maintainer off of package model
This is an attempt to fix our long-standing problems dealing with maintainer
information. Move the actual maintainer information off of the package model
into a PackageRelation object, which has some flexibility to later represent
more than just maintainership.

This solves multiple problems:
* If a package gets accidentally deleted, so did the maintainer info
* Testing packages have always shown up as orphans
* With split packages, it was easy to miss some of the sub-packages

This commit does not include the deletion of the original maintainer column;
that will come at a later time when I feel more confident that the data was
migrated correctly.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-27 16:15:20 -05:00
Dan McGee
21fe1460d4 Make the new 'testing' flag on repo a bit clearer
Since at least two repositories currently fall under this flag, add some
help text and visibility to this column.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-10 20:50:29 -06:00
Dan McGee
93e0552e3d Mirror tiering enhancements
Add ability to track tier and upstream mirror in the database.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06 10:13:28 -06:00
Dan McGee
d709604102 Remove archweb prefix from all imports
Unnecessary, and lets us standardize on not using it everywhere.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-10 00:29:27 -06:00
Dan McGee
b13947bb77 Kill a no longer necessary hack in the admin
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31 15:29:49 -06:00
Ismael Carnales
48904e4857 modified import paths from archweb_dev to archweb 2009-11-09 22:24:34 -02:00
Dusty Phillips
499bb4aca7 Add an 'external projects' model and admin for managing the projects page. 2009-08-20 16:17:25 -06:00
Dusty Phillips
0d47599768 Too many columns in mirror admin 2009-08-12 15:45:49 -06:00
Dusty Phillips
88d83dfaa6 Add a couple columns to user admin at Aaron's request. 2009-08-12 15:39:56 -06:00
Dusty Phillips
756751ab7f Add a couple fields to mirror admin at Aaron's request 2009-08-12 15:36:35 -06:00
Dan McGee
8d53e928f6 Mirror rsync IP: allow netmask specification
Noticed this was necessary while trying to get all the rsync IPs into the
database.

Signed-off-by: Dan McGee <dan@archlinux.org>
2009-02-07 16:32:41 -06:00
Dan McGee
6a3274dea1 Ensure all mirror URLs are saved with a trailing slash
Add a clean_url() function to a custom ModelForm to accomplish this.

Signed-off-by: Dan McGee <dan@archlinux.org>
2009-02-06 17:10:21 -05:00
Dan McGee
7ee38a871a Refactor mirror model
Break the original model down into a few different components that should
give us a lot more flexibility. Mirror is now the top level entity with
one-to-many relationships to both URLs and rsync IP addresses. This should
allow the DB model to serve all of our currently unsynced needs.

Signed-off-by: Dan McGee <dan@archlinux.org>
2009-02-06 17:09:55 -05:00
Dusty Phillips
945c52710a User profiles are cool. Go go power notebook 2008-12-05 19:32:25 -05:00
Dusty Phillips
f583f6aa09 port admin to django 1.0 2008-10-05 21:41:37 -04:00