added my goodreads api key for please.unglueit.com

pull/1/head
Ed Summers 2011-11-11 17:33:58 -05:00
parent 4c29afdb94
commit 08053cc4ba
2 changed files with 15 additions and 0 deletions

View File

@ -201,6 +201,9 @@ class Work(models.Model):
if ebook_format == None or ebook.format == ebook_format:
return ebook
return None
def wished_by(self):
return User.objects.filter(wishlist__works__in=[self])
def __unicode__(self):
return self.title

View File

@ -68,6 +68,16 @@ PAYPAL_GLUEJAR_EMAIL = ""
PAYPAL_TEST_RH_EMAIL = "rh1_1317336251_biz@gluejar.com"
PAYPAL_TEST_NONPROFIT_PARTNER_EMAIL = ""
# Goodreads API
GOODREADS_API_KEY = "vfqIO6QAhBVvlxt6hAzZJg"
GOODREADS_API_SECRET = "57tq4MpyJ15Hgm2ToZQQFWJ7vraZzOAqHLckWRXQ"
# Freebase credentials
FREEBASE_USERNAME = ''
FREEBASE_PASSWORD = ''
# send celery log to Python logging
CELERYD_HIJACK_ROOT_LOGGER = False
BASE_URL = 'http://0.0.0.0/'
# use redis for production queue
@ -75,3 +85,5 @@ BROKER_TRANSPORT = "redis"
BROKER_HOST = "localhost"
BROKER_PORT = 6379
BROKER_VHOST = "0"