diff options
author | Tom Willemse | 2013-05-09 20:07:49 +0200 |
---|---|---|
committer | Tom Willemse | 2013-05-09 20:07:49 +0200 |
commit | 15c5869b54e9a770b9abbeab1e990b713cdb1b3b (patch) | |
tree | 4aa805a44e8da93f4b0698520f16096d216d8ec3 /ryuslash/aggregator/models.py | |
parent | 5f7df695ac6dd9ccc5444a8fc20fa8d97196953e (diff) | |
download | ryuslash.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.py | 14 |
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' ] |