You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
URL names are optional in Django, but the silk.model_factory.construct_request_model method depends on the presence url_name in the resolved url.
This attribute is only set when a url_name is specified in the pattern for the requested url in Django >= 1.8.
If it is not set, the following error appears:
The url_name is set by Django in versions 1.6 and 1.7 but not in 1.8 and 1.9.
In these latter two versions, a view_name is set instead.
It would be possible to use this view_name in construct_request_model whenever present (for Django>=1.8) or determine it as is currently done (for 1.6 >= Django > 1.8)
The text was updated successfully, but these errors were encountered:
URL names are optional in Django, but the
silk.model_factory.construct_request_model
method depends on the presenceurl_name
in the resolved url.This attribute is only set when a
url_name
is specified in the pattern for the requested url in Django >= 1.8.If it is not set, the following error appears:
The
url_name
is set by Django in versions 1.6 and 1.7 but not in 1.8 and 1.9.In these latter two versions, a
view_name
is set instead.It would be possible to use this
view_name
inconstruct_request_model
whenever present (for Django>=1.8) or determine it as is currently done (for 1.6 >= Django > 1.8)The text was updated successfully, but these errors were encountered: