Untitled

 avatar
unknown
plain_text
5 months ago
230 B
2
Indexable
from app.models import User

from .base_loader import BaseLoader


class UserByLoginLoader(BaseLoader):
    """A loader class for loading User objects by login instead of ID."""

    model = User
    column = User.login
Editor is loading...
Leave a Comment