bensi94 / Django-Requests-Tracker

The Django Requests Tracker is designed for local development, particularly for Rest API development. It provides various debugging information, such as SQL queries, headers, and status codes.
MIT License
37 stars 0 forks source link

View name is wrong when using Django Ninja #12

Open AlTosterino opened 5 months ago

AlTosterino commented 5 months ago

Hey!

We are using Django Ninja (0.22.2) in our project, and all django view names are:

Django View
_async_view
ninja.operation._async_view

I know that this is not pure Django, but Django-Ninja becomes very popular. I'm wondering how it's looking using DRF 🤔

I'd check myself if it's easy to fix, but I'm adding an issue anyway

AlTosterino commented 5 months ago

I checked and func from Django resolve points to PathView._async_view :/

view_name of ResolverMatch should work, but it's not a path of a view, it's a app_name:view_name :/

bensi94 commented 5 months ago

Thanks. I'll take a look.