all(major): add most models to API

This commit is contained in:
Langhammer, Jens
2019-10-28 17:40:57 +01:00
parent 846a86fb62
commit cffe09b02e
27 changed files with 606 additions and 46 deletions

View File

@ -3,6 +3,7 @@ from __future__ import annotations
from typing import TYPE_CHECKING, List
from django.db.models import Model
from django.http import HttpRequest
if TYPE_CHECKING:
@ -13,6 +14,7 @@ class PolicyRequest:
user: User
http_request: HttpRequest
obj: Model
def __init__(self, user: User):
self.user = user