- edited description
Can we make it work on Django-nonrel
This is a great app, but now I want to run on Django-nonrel. When I run tests it failed all cases. I'm sending the stack trace, any idea? I removed the database and re-run it, the same issue occurs.
Traceback (most recent call last):
File "/Users/thailycuong1202/Documents/link/link/website/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/thailycuong1202/Documents/link/link/website/django/views/decorators/csrf.py", line 39, in wrapped_view
resp = view_func(*args, **kwargs)
File "/Users/thailycuong1202/Documents/link/link/website/django/views/decorators/csrf.py", line 52, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/thailycuong1202/Documents/link/link/website/oauth_provider/views.py", line 33, in request_token
consumer = store.get_consumer(request, oauth_request, oauth_request['oauth_consumer_key'])
File "/Users/thailycuong1202/Documents/link/link/website/oauth_provider/store/db.py", line 13, in get_consumer
return Consumer.objects.get(key=consumer_key)
File "/Users/thailycuong1202/Documents/link/link/website/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/Users/thailycuong1202/Documents/link/link/website/django/db/models/query.py", line 353, in get
% (self.model._meta.object_name, num, kwargs))
MultipleObjectsReturned: get() returned more than one Consumer -- it returned 2! Lookup parameters were {'key': u'dpf43f3p2l4k3l03'}
Comments (3)
-
David Larlet
-
David Larlet
- changed status to open
I don't have any idea, maybe if you can attach a sample project based on non-rel I'll be able to try that. It looks to be a unicity issue, probably related to non-rel but it's hard to tell.
-
Michał Jaworski
- changed status to wontfix
I'm not sure if it's
django-oauth-plusordjango-nonrelissue.I suppose issue could be even unrelated with nonrel - neither Token nor Consumer models have unique constraints on key field.
Mark it as wontfix because it needs a few more new features.
- Log in to comment »