summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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)