aboutsummaryrefslogtreecommitdiffstats
path: root/ryuslash/aggregator/models.py
blob: ac3d278500b497cde1e0b2b413148a6c45cba675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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, blank=True)
    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' ]