Example #1
0
	def new_rating(self, vendor_id, user_id, rating, rating_type, type_id, engagement_id, channel, comment=''):
		vendor_rating = VendorRating(
			vendor_id=vendor_id, user_id=user_id,
			rating=rating, channel=channel, comment=comment,
			rating_type=rating_type, type_id=type_id,
			engagement_id=engagement_id
		)
		vendor_rating.save()
		return vendor_rating
Example #2
0
 def new_rating(self,
                vendor_id,
                user_id,
                rating,
                service_date,
                rating_type,
                type_id,
                engagement_id,
                main_menu_id,
                channel='web',
                comment=''):
     vendor_rating = VendorRating(vendor_id=vendor_id,
                                  user_id=user_id,
                                  rating=rating,
                                  service_date=service_date,
                                  channel=channel,
                                  comment=comment,
                                  rating_type=rating_type,
                                  type_id=type_id,
                                  engagement_id=engagement_id,
                                  main_meal_id=main_menu_id)
     vendor_rating.save()
     return vendor_rating
Example #3
0
	def new_vendor_rating(self, vendor_id, user_id, rating, channel, comment=''):
		vendor_rating = VendorRating(vendor_id=vendor_id, user_id=user_id, rating=rating, channel=channel, comment=comment)
		vendor_rating.save()
		return vendor_rating