healthchecks_healthchecks/hc/accounts/http.py
Pēteris Caune 30a3a784c3
Move AuthenticatedHttpRequest to hc.accounts.http module
If AuthenticatedHttpRequest lives in the hc.lib.typealias
module then hc.lib.typealias imports User and Profile,
and so needs configured Django settings. Most of the stuff
in hc.lib is intended to work standalone, and not rely on Django.
2023-10-21 18:16:48 +03:00

11 lines
239 B
Python

from __future__ import annotations
from django.contrib.auth.models import User
from django.http import HttpRequest
from hc.accounts.models import Profile
class AuthenticatedHttpRequest(HttpRequest):
user: User
profile: Profile