forked from Github-Mirrors/canaille
refactor: make User and Group directly inherit from Model
This commit is contained in:
parent
efe3a3c4c4
commit
7418d10efb
1 changed files with 4 additions and 2 deletions
|
@ -2,8 +2,10 @@ import datetime
|
|||
from typing import List
|
||||
from typing import Optional
|
||||
|
||||
from canaille.backends.models import Model
|
||||
|
||||
class User:
|
||||
|
||||
class User(Model):
|
||||
"""
|
||||
User model, based on the `SCIM User schema
|
||||
<https://datatracker.ietf.org/doc/html/rfc7643#section-4.1>`_,
|
||||
|
@ -296,7 +298,7 @@ class User:
|
|||
)
|
||||
|
||||
|
||||
class Group:
|
||||
class Group(Model):
|
||||
"""
|
||||
User model, based on the `SCIM Group schema
|
||||
<https://datatracker.ietf.org/doc/html/rfc7643#section-4.2>`_.
|
||||
|
|
Loading…
Reference in a new issue