def save self self album user pictures_counter self album user save su

1
2
3
4
def save(self):
self.album.user.pictures_counter += 1
self.album.user.save()
super(Picture, self).save()