summaryrefslogtreecommitdiff
path: root/releng/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-19 10:55:58 -0600
committerDan McGee <dan@archlinux.org>2013-01-19 10:59:18 -0600
commit8cfaa39a0464f7ee35af76473d3e73ae587a6cb8 (patch)
treef703bf38c84d2c53ec3452484b1d59668cfb3007 /releng/models.py
parent23ef118ac129e17d251634d2ef3c88c6d74279e3 (diff)
Add more metadata to releng Release model
Add a file_size field which we will use in the RSS feed, and also add a field for future storage of the torrent data itself. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'releng/models.py')
-rw-r--r--releng/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/releng/models.py b/releng/models.py
index a22e01d6..9f091371 100644
--- a/releng/models.py
+++ b/releng/models.py
@@ -5,6 +5,7 @@ from django.db import models
from django.db.models.signals import pre_save
from django.utils.safestring import mark_safe
+from main.fields import PositiveBigIntegerField
from main.utils import set_created_field
@@ -113,9 +114,11 @@ class Release(models.Model):
version = models.CharField(max_length=50)
kernel_version = models.CharField(max_length=50, blank=True)
torrent_infohash = models.CharField(max_length=64, blank=True)
+ file_size = PositiveBigIntegerField(null=True, blank=True)
created = models.DateTimeField(editable=False)
available = models.BooleanField(default=True)
info = models.TextField('Public information', blank=True)
+ torrent_data = models.TextField(blank=True)
class Meta:
get_latest_by = 'release_date'