from models import Model


class Session(Model):
    """
    Session 是用来保存 session 的 model
    """
    @classmethod
    def valid_names(cls):
        names = super().valid_names()
        names = names + [
            'session_id',
            'user_id',
        ]
        return names

    @classmethod
    def new(cls, form):
        m = super().new(form)
        m.save()
        return m

da5ac2475d527583f5d13ba468cce252f4164bfe
<mask token>


class Session(Model):
    <mask token>
    <mask token>

    @classmethod
    def new(cls, form):
        m = super().new(form)
        m.save()
        return m

<mask token>


class Session(Model):
    <mask token>

    @classmethod
    def valid_names(cls):
        names = super().valid_names()
        names = names + ['session_id', 'user_id']
        return names

    @classmethod
    def new(cls, form):
        m = super().new(form)
        m.save()
        return m

<mask token>


class Session(Model):
    """
    Session 是用来保存 session 的 model
    """

    @classmethod
    def valid_names(cls):
        names = super().valid_names()
        names = names + ['session_id', 'user_id']
        return names

    @classmethod
    def new(cls, form):
        m = super().new(form)
        m.save()
        return m

from models import Model


class Session(Model):
    """
    Session 是用来保存 session 的 model
    """

    @classmethod
    def valid_names(cls):
        names = super().valid_names()
        names = names + ['session_id', 'user_id']
        return names

    @classmethod
    def new(cls, form):
        m = super().new(form)
        m.save()
        return m

from models import Model


class Session(Model):
    """
    Session 是用来保存 session 的 model
    """
    @classmethod
    def valid_names(cls):
        names = super().valid_names()
        names = names + [
            'session_id',
            'user_id',
        ]
        return names

    @classmethod
    def new(cls, form):
        m = super().new(form)
        m.save()
        return m
