Commit Graph

15 Commits

Author SHA1 Message Date
Dan McGee
4c69911982 get_latest_by cleanups
Fix some that referenced non-existent attributes, and add the attribute
to other models.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-12-04 21:59:29 -06:00
Dan McGee
c0bf9e2066 Remove custom utc_now() function, use django.utils.timezone.now()
This was around from the time when we handled timezones sanely and
Django did not; now that we are on 1.4 we no longer need our own code to
handle this.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24 19:57:20 -05:00
Dan McGee
bbcbde0197 Add a last_modified field to user profiles
A behind the scenes field that might be slightly useful.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-06-20 17:03:26 -05:00
Dan McGee
22fc394e36 Add country attribute to developer profile
We can then show little flag icons later on in relevant places based off
of this, such as on the developer profile, clocks page, etc.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-26 12:07:38 -05:00
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
7d8580b4b1 Add number of keys signed to master keys page
This really just makes me look bad, but an interesting fact none the
less for people to look at.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-21 15:52:40 -05:00
Dan McGee
07f74a87dd Remove ambiguity in PGPSignature verbose field names
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-29 13:29:36 -06:00
Dan McGee
b1c42e16ac Convert master key datetimes to dates
The extra precision is not necessary and just makes entry of the data
harder anyway.
2011-12-07 13:05:49 -06:00
Dan McGee
7b6ec8662a Enhance devel model admin
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-07 13:04:34 -06:00
Dan McGee
f3a3ce5623 Add new PGPSignature model
This will be used to track cross-developer and master key signatures to
build a visualization in the web interface of key signatures, as well as
be able to provide info on who is verified, who is not, etc.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-05 16:53:26 -06:00
Dan McGee
025042ef0d Master keys: reduce query count, add default ordering
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-30 14:45:05 -06:00
Dan McGee
da61fed4be Add master key model and admin integration 2011-11-30 13:31:51 -06:00
Ismael Carnales
3f8fe75d36 Add credential requirements tests to devel app
* Add models.py required file to app
* Use user_passes_test instead of custom superuser checking in
  new_user_form as it implements the same "next" redirection as
  login_required

Signed-off-by: Ismael Carnales <icarnales@gmail.com>
2009-12-01 23:26:14 -02:00
eliott
9b7b512254 Moved models around 2008-03-08 00:13:41 -08:00
eliott
706152de89 Moved some things around. 2007-12-29 18:21:10 -08:00