mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-11-04 03:22:51 +08:00
fix httprequest other fields
This commit is contained in:
1 parent
d7d379e1cd
commit
39fb48b08a
2 files changed
+3
-1
No files matched your search
@@ -205,7 +205,7 @@ class NewSemanalDjangoPlugin(Plugin):
|
||||
django_context=self.django_context)
|
||||
|
||||
info = self._get_typeinfo_or_none(class_name)
|
||||
if info and info.has_base(fullnames.HTTPREQUEST_CLASS_FULLNAME):
|
||||
if info and info.has_base(fullnames.HTTPREQUEST_CLASS_FULLNAME) and attr_name == 'user':
|
||||
return partial(request.set_auth_user_model_as_type_for_request_user, django_context=self.django_context)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user