Example #1
0
def get_ratio(request): 
	return HttpResponse(json.dumps(
		[u"%s" % aspect_ratio(request.GET["width"], request.GET["height"])]
	))
Example #2
0
	def save(self, *args, **kwargs):
		self.aspect_ratio = utils.aspect_ratio(self.width, self.height)
		super(Size, self).save(*args, **kwargs)
Example #3
0
def get_ratio(request):
    return HttpResponse(
        json.dumps([
            u"%s" % aspect_ratio(request.GET["width"], request.GET["height"])
        ]))