one more round

This commit is contained in:
Sanj 2011-06-21 03:07:29 +05:30
parent 671641495f
commit 1c8811df84

View File

@ -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):