2013-11-24 01:07:55 +00:00
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
class Pope(models.Model):
|
2013-11-24 01:58:00 +00:00
|
|
|
pope_path = models.CharField(max_length=200)
|
|
|
|
pope_version = models.ForeignKey('PopeVersion')
|
|
|
|
|
2013-11-24 01:07:55 +00:00
|
|
|
aspect_ratio = models.DecimalField(max_digits=3, decimal_places=2)
|
|
|
|
width = models.IntegerField()
|
|
|
|
height = models.IntegerField()
|
|
|
|
# Create your models here.
|
2013-11-24 01:58:00 +00:00
|
|
|
|
|
|
|
class PopeVersion(models.Model):
|
|
|
|
pope_id = models.AutoField(primary_key=True)
|
|
|
|
pope_name = models.CharField(max_length=200)
|
|
|
|
|
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return self.pope_name
|