﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34474	Django apps   registry  returns the wrong models	Dimitris Kougioumtzis	nobody	"When i want to get the models for the app sites  it returns the wrong models 


{{{
def get_models(request):
    app = request.GET.get('app')
    models = []
    amodels = apps.get_models(app)
    for model in amodels:
        models.append(model.__name__)
    return JsonResponse({""models"":models})
}}}

when i call the function with  request parameters  sites  it returns  models from the admin app "	Bug	closed	Uncategorized	4.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
