aboutsummaryrefslogtreecommitdiffstats
path: root/ryuslash/aggregator/models.py
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-05-09 20:07:49 +0200
committerGravatar Tom Willemse2013-05-09 20:07:49 +0200
commit15c5869b54e9a770b9abbeab1e990b713cdb1b3b (patch)
tree4aa805a44e8da93f4b0698520f16096d216d8ec3 /ryuslash/aggregator/models.py
parent5f7df695ac6dd9ccc5444a8fc20fa8d97196953e (diff)
downloadryuslash.org-15c5869b54e9a770b9abbeab1e990b713cdb1b3b.tar.gz
ryuslash.org-15c5869b54e9a770b9abbeab1e990b713cdb1b3b.zip
Update for django 1.4
Diffstat (limited to 'ryuslash/aggregator/models.py')
-rw-r--r--ryuslash/aggregator/models.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/ryuslash/aggregator/models.py b/ryuslash/aggregator/models.py
new file mode 100644
index 0000000..34fb5a3
--- /dev/null
+++ b/ryuslash/aggregator/models.py
@@ -0,0 +1,14 @@
+from django.db import models
+
+class Post(models.Model):
+ post_id = models.CharField(max_length=255, unique=True,
+ primary_key=True)
+ title = models.CharField(max_length=500)
+ category = models.CharField(max_length=255)
+ link = models.URLField(max_length=255)
+ updated = models.DateTimeField()
+ content = models.TextField()
+ icon = models.CharField(max_length=255)
+
+ class Meta:
+ ordering = [ '-updated' ]