aboutsummaryrefslogtreecommitdiffstats
path: root/ryuslash/aggregator/models.py
blob: 34fb5a384dba27c439959576d377e24d37a7fc84 (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)
    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' ]