# HG changeset patch # User Brian Neal # Date 1287866565 0 # Node ID 47a7138fcccb9616cea37f6ef705da25ee3b3851 # Parent 72fd300685d54302260d1a75d8db6b2389bb625b Fix typo in oembed/views.py. Added oembed provider fixture. diff -r 72fd300685d5 -r 47a7138fcccb gpp/oembed/fixtures/providers.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/oembed/fixtures/providers.json Sat Oct 23 20:42:45 2010 +0000 @@ -0,0 +1,12 @@ +[ + { + "pk": 1, + "model": "oembed.provider", + "fields": { + "api_endpoint": "http://www.youtube.com/oembed", + "name": "YouTube", + "url_regex": "^http://www\\.youtube\\.com/watch\\?v=\\S+$", + "format": 0 + } + } +] \ No newline at end of file diff -r 72fd300685d5 -r 47a7138fcccb gpp/oembed/views.py --- a/gpp/oembed/views.py Sat Oct 23 20:19:46 2010 +0000 +++ b/gpp/oembed/views.py Sat Oct 23 20:42:45 2010 +0000 @@ -62,7 +62,7 @@ return HttpResponse(json.dumps(data), content_type='application/json') - return HttpBadRequest("Sorry, we couldn't find that video.") + return HttpResponseBadRequest("Sorry, we couldn't find that video.") def fetch_saved_media(request):