refactor: make User and Group directly inherit from Model

This commit is contained in:
Éloi Rivard 2024-03-30 18:48:03 +01:00
parent efe3a3c4c4
commit 7418d10efb
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184

View file

@ -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>`_.