'How to check type of reverse_lazy() object in django
I want to do following:
u=reverse_lazy('xyz')
isinstance(u,str) # this is false since u is an object.
type(u) # <class 'django.utils.functional.lazy.<locals>.__proxy__'>
isinstance(u,<class 'django.utils.functional.lazy.<locals>.__proxy__'>) # doesnt work
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
