mirror of
https://github.com/healthchecks/healthchecks.git
synced 2025-03-14 20:32:51 +00:00

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.
11 lines
239 B
Python
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
|