one more round
This commit is contained in:
parent
671641495f
commit
1c8811df84
|
@ -265,7 +265,7 @@ class Article(models.Model):
|
|||
# product = Product.objects.get(pk=self.product.id)
|
||||
aspect_ratio = self.typ.aspect_ratio
|
||||
width = 800
|
||||
height = int(800.0 // aspect_ratio)
|
||||
height = int(round(800.0 // aspect_ratio))
|
||||
return (width, height,)
|
||||
|
||||
def print_size(self, print_width):
|
||||
|
|
Loading…
Reference in New Issue
Block a user