consolidate find api requests, all subrequest are also find with other options, add positions request via ids

This commit is contained in:
j 2010-06-30 13:18:04 +02:00
commit cf19fb16b8
3 changed files with 74 additions and 90 deletions

View file

@ -931,7 +931,7 @@ class Review(models.Model):
if q.count() > 0:
o = q[0]
else:
o = self.objects.create(movie=movie, url=g)
o = self.objects.create(movie=movie, url=url)
o.save()
return o
get_or_create = classmethod(get_or_create)