from django.db import models
from pages.models import Page


class Flicker(models.Model):
    page_id = models.ForeignKey(Page)
    name = models.CharField(max_length=255)
    text = models.CharField(max_length=255)
    per_page = models.IntegerField()

    class Meta:
        db_table= 'flicker'

    def __unicode__(self):
        return self.name
