Assignee
Priority
major
Status
wontfix
Watchers
0

Can we make it work on Django-nonrel

Anonymous avatarAnonymous created an issue

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)

  1. 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.

  2. Michał Jaworski

    I'm not sure if it's django-oauth-plus or django-nonrel issue.

    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.

  3. Log in to comment »
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.