Pivot table between users and the challenges they are in.
More...
Static Private Attributes |
string | __tablename__ = 'users_challenges' |
Detailed Description
Pivot table between users and the challenges they are in.
Definition at line 26 of file pivot_tables.py.
Constructor & Destructor Documentation
def wowf.models.pivot_tables.UserChallenge.__init__ |
( |
|
self, |
|
|
|
user, |
|
|
|
challenge |
|
) |
| |
Member Function Documentation
def wowf.models.pivot_tables.UserChallenge.accept |
( |
|
self | ) |
|
def wowf.models.pivot_tables.UserChallenge.create |
( |
|
cls, |
|
|
|
user, |
|
|
|
challenge |
|
) |
| |
def wowf.models.pivot_tables.UserChallenge.deny |
( |
|
self | ) |
|
Member Data Documentation
string wowf.models.pivot_tables.UserChallenge.__tablename__ = 'users_challenges' |
|
staticprivate |
tuple wowf.models.pivot_tables.UserChallenge.challenge = relationship('Challenge', lazy='joined') |
|
static |
wowf.models.pivot_tables.UserChallenge.challenge |
tuple wowf.models.pivot_tables.UserChallenge.challenge_id |
|
static |
Initial value:Column(
Integer(unsigned=True), ForeignKey('challenges.id', ondelete='cascade'),
primary_key=True, autoincrement=False)
Definition at line 32 of file pivot_tables.py.
tuple wowf.models.pivot_tables.UserChallenge.is_accepted = Column(Boolean, default=None) |
|
static |
wowf.models.pivot_tables.UserChallenge.is_accepted |
tuple wowf.models.pivot_tables.UserChallenge.user = relationship('User', lazy='joined') |
|
static |
wowf.models.pivot_tables.UserChallenge.user |
tuple wowf.models.pivot_tables.UserChallenge.user_id |
|
static |
Initial value:Column(
Integer(unsigned=True), ForeignKey('users.id', ondelete='cascade'),
primary_key=True, autoincrement=False)
Definition at line 29 of file pivot_tables.py.
The documentation for this class was generated from the following file: