mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-11-04 19:42:50 +08:00
request.user has type of AUTH_USER_MODEL
This commit is contained in:
1 parent
248504c25a
commit
fa57fb0cbf
7 files changed
+43
-6
No files matched your search
@@ -15,9 +15,6 @@ def get_referred_to_model_fullname(ctx: FunctionContext, django_context: DjangoC
|
||||
return to_arg_type.ret_type.type.fullname()
|
||||
|
||||
outer_model_info = ctx.api.scope.active_class()
|
||||
# if not outer_model_info or not outer_model_info.has_base(fullnames.MODEL_CLASS_FULLNAME):
|
||||
# # not inside models.Model class
|
||||
# return None
|
||||
assert isinstance(outer_model_info, TypeInfo)
|
||||
|
||||
to_arg_expr = helpers.get_call_argument_by_name(ctx, 'to')
|
||||
|
||||
Reference in new issue
Block a user