toastdriven/django-tastypie — Issue #344: ModeResource resource_uri incorrect when two apps have the same resource name
Author: clacasse
Created: 2012-01-25 18:59:56+00:00
State: open

I have two apps, one for test results, called 'results', the other for scheduling test runs, called 'scheduler' Both have a model named TestRun with a resource named TestRunResource. The resources are registered with api_name='models'

resource_uri for all results resources begins with '/dashboard/results/rest/models'
resource_uri for all scheduler resources should begin with '/dashboard/scheduler/rest/models'

The resource_uri is correct for all except where there is a name conflict-- TestRun. The uri prefix is the results uri instead of scheduler uri:

{
"guid": "90473a7a6c21485384bfa8fca250146e",
"queue": "/dashboard/scheduler/rest/models/queue/1/",
"resource_uri": "/dashboard/results/rest/models/testrun/90473a7a6c21485384bfa8fca250146e/"
}