summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2017-01-06 18:38:55 +0100
committerMagnus Granberg <zorry@gentoo.org>2017-01-06 18:38:55 +0100
commit8075fca3b427cdedb19c50bf8c8ede5476aaf7ad (patch)
tree6065bda87ed2ee727cb79f614e57714b0a0f2aa2 /python/gentoo_www/models.py
parentUpdate for django 1.10 and fix links for css and js (diff)
downloadtinderbox-cluster-www-8075fca3b427cdedb19c50bf8c8ede5476aaf7ad.tar.gz
tinderbox-cluster-www-8075fca3b427cdedb19c50bf8c8ede5476aaf7ad.tar.bz2
tinderbox-cluster-www-8075fca3b427cdedb19c50bf8c8ede5476aaf7ad.zip
Redone the layout
Diffstat (limited to 'python/gentoo_www/models.py')
-rw-r--r--python/gentoo_www/models.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/python/gentoo_www/models.py b/python/gentoo_www/models.py
index dd90bb6..2bc345e 100644
--- a/python/gentoo_www/models.py
+++ b/python/gentoo_www/models.py
@@ -1,4 +1,4 @@
-# Copyright 1998-2015 Gentoo Foundation
+# Copyright 1998-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
from django.db import models
@@ -109,8 +109,16 @@ class Posts(models.Model):
title = models.CharField(max_length=200, db_column='title')
url = models.CharField(max_length=200, db_column='url')
text = models.TextField(db_column='text')
- TimeStamp = models.DateTimeField(db_column=u'time_stamp')
+ TimeStamp = models.DateTimeField(db_column='time_stamp')
class Meta:
db_table='posts'
def __str__(self):
return '%s %s %s %s %s' % (self.PostId, self.title, self.url, self.text, self.TimeStamp)
+
+class Bugzilla(models.Model):
+ Username = models.CharField(max_length=150,db_column='username')
+ Bugzillaname = models.CharField(max_length=150, db_column='bugzillaname')
+ class Meta:
+ db_table='bugzillauser'
+ def __str__(self):
+ return '%s %s' % (self.Username, self.Bugzillauser)