summaryrefslogtreecommitdiff
path: root/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-12-07 13:11:52 -0600
committerDan McGee <dan@archlinux.org>2011-12-07 13:11:52 -0600
commitc2e84a787a4e0b66648f6b8a076a4d25e2289b4d (patch)
tree011e5ebf2e09e5f29b1c5fab6de776dc872f5f81 /mirrors
parentb1c42e16ac0c49a574cfa154162353ac555ac342 (diff)
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>
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/models.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/mirrors/models.py b/mirrors/models.py
index a8217844..111654fd 100644
--- a/mirrors/models.py
+++ b/mirrors/models.py
@@ -28,7 +28,7 @@ class Mirror(models.Model):
admin_email = models.EmailField(max_length=255, blank=True)
public = models.BooleanField(default=True)
active = models.BooleanField(default=True)
- isos = models.BooleanField(default=True)
+ isos = models.BooleanField("ISOs", default=True)
rsync_user = models.CharField(max_length=50, blank=True, default='')
rsync_password = models.CharField(max_length=50, blank=True, default='')
notes = models.TextField(blank=True)
@@ -59,11 +59,10 @@ class MirrorProtocol(models.Model):
return self.protocol
class Meta:
- verbose_name = 'Mirror Protocol'
ordering = ('protocol',)
class MirrorUrl(models.Model):
- url = models.CharField(max_length=255, unique=True)
+ url = models.CharField("URL", max_length=255, unique=True)
protocol = models.ForeignKey(MirrorProtocol, related_name="urls",
editable=False, on_delete=models.PROTECT)
mirror = models.ForeignKey(Mirror, related_name="urls")
@@ -108,17 +107,17 @@ class MirrorUrl(models.Model):
return self.url
class Meta:
- verbose_name = 'Mirror URL'
+ verbose_name = 'mirror URL'
class MirrorRsync(models.Model):
- ip = models.CharField(max_length=24)
+ ip = models.CharField("IP", max_length=24)
mirror = models.ForeignKey(Mirror, related_name="rsync_ips")
def __unicode__(self):
return "%s" % (self.ip)
class Meta:
- verbose_name = 'Mirror Rsync IP'
+ verbose_name = 'mirror rsync IP'
class MirrorLog(models.Model):
url = models.ForeignKey(MirrorUrl, related_name="logs")
@@ -132,6 +131,6 @@ class MirrorLog(models.Model):
return "Check of %s at %s" % (self.url.url, self.check_time)
class Meta:
- verbose_name = 'Mirror Check Log'
+ verbose_name = 'mirror check log'
# vim: set ts=4 sw=4 et: