Commits

Anonymous committed c898a44 Draft

change product to return resources giving the prefix instead of the name - towards #110

Comments (0)

Files changed (1)

multiproduct/model.py

     @property
     def resource(self):
         """Allow Product to be treated as a Resource"""
-        return Resource('product', self.name)
+        return Resource('product', self.prefix)
     
     def delete(self, resources_to=None):
         """ override the delete method so that we can move references to this