def rating_post_save(instance, *args, **kwargs):
 ResourceBase.objects.filter(id=instance.object_id).update(rating=instance.rating)

def rating_post_save ( instance , * args , ** kwargs ) : ResourceBase . objects . filter ( id = instance . object_id ) . update ( rating = instance . rating )
used to fill the average rating field on overallrating change .