Commits

Ihar Niamilentsau  committed 7aaf4ec

fix consumer key encoding

  • Participants
  • Parent commits 7c90898

Comments (0)

Files changed (2)

 .svn
 *.swp
 docs/_build
+.idea

File piston/store.py

     def lookup_consumer(self, key):
         try:
             self.consumer = Consumer.objects.get(key=key)
+            self.consumer.key = self.consumer.key.encode('ascii')
+            self.consumer.secret = self.consumer.secret.encode('ascii')
             return self.consumer
         except Consumer.DoesNotExist:
             return None