19 lines
512 B
Python
19 lines
512 B
Python
from django.db import models
|
|
|
|
class Pope(models.Model):
|
|
pope_path = models.CharField(max_length=200)
|
|
pope_version = models.ForeignKey('PopeVersion')
|
|
|
|
aspect_ratio = models.DecimalField(max_digits=3, decimal_places=2)
|
|
width = models.IntegerField()
|
|
height = models.IntegerField()
|
|
# Create your models here.
|
|
|
|
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
|