summaryrefslogtreecommitdiffstats
path: root/releng/management/commands/syncisos.py
AgeCommit message (Collapse)AuthorFilesLines
2013-04-16Various minor code cleanups and fixesrelease_2013-04-16Dan McGee1-1/+1
Most of these were suggested by PyCharm, and include everything from little syntax issues and other bad smells to dead or bad code. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-02-09Use 'update_fields' model.save() kwargDan McGee1-1/+1
This was added in Django 1.5 and allows saving only a subset of a model's fields. It makes sense in a few cases to utilize it. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24Remove custom utc_now() function, use django.utils.timezone.now()Dan McGee1-3/+2
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-03-23Make all datetime objects fully timezone awareDan McGee1-2/+3
This is most of the transition to Django 1.4 `USE_TZ = True`. We need to ensure we don't mix aware and non-aware datetime objects when dealing with datetimes in the code. Add a utc_now() helper method that we can use most places, and ensure there is always a timezone attached when necessary. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-17releng syncisos: reactive inactive ISOs if availableDan McGee1-2/+9
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-16Add a removed date for releng ISOsDan McGee1-1/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-29releng: auto-deactivate old ISO namesDan McGee1-4/+7
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28Rename isotests to relengDan McGee1-0/+48
Signed-off-by: Dan McGee <dan@archlinux.org>