def serialize(self): serializer = AddonSerializer(context={'request': self.request}) return serializer.to_representation(self.addon)
def serialize(self): # Manually reload the add-on first to clear any cached properties. self.addon = Addon.unfiltered.get(pk=self.addon.pk) serializer = AddonSerializer(context={'request': self.request}) return serializer.to_representation(self.addon)
def serialize(self): serializer = AddonSerializer(context={'request': self.request}) return serializer.to_representation(self.addon)
def serialize(self): # Manually reload the add-on first to clear any cached properties. self.addon = Addon.unfiltered.get(pk=self.addon.pk) serializer = AddonSerializer(context={'request': self.request}) return serializer.to_representation(self.addon)