A long time ago, in a galaxy far far away...
parent
3a347e86d2
commit
3b683ea544
|
@ -4,7 +4,6 @@ DECIMAL_PLACES = 3
|
|||
|
||||
|
||||
class PopeImage(models.Model):
|
||||
id = models.AutoField(primary_key=True)
|
||||
path = models.CharField(max_length=200)
|
||||
width = models.IntegerField()
|
||||
height = models.IntegerField()
|
||||
|
@ -16,7 +15,6 @@ class PopeImage(models.Model):
|
|||
|
||||
|
||||
class Pope(models.Model):
|
||||
id = models.IntegerField(primary_key=True)
|
||||
name = models.CharField(max_length=200)
|
||||
|
||||
def __str__(self):
|
||||
|
@ -24,7 +22,7 @@ class Pope(models.Model):
|
|||
|
||||
|
||||
class PerfectPope(models.Model):
|
||||
aspect_ratio = models.FloatField(primary_key=True)
|
||||
aspect_ratio = models.FloatField()
|
||||
image = models.ForeignKey('PopeImage')
|
||||
pope = models.ForeignKey('Pope')
|
||||
|
||||
|
|
Loading…
Reference in New Issue