stalker.models.review.DailyLink¶
-
class
stalker.models.review.
DailyLink
(daily=None, link=None, rank=0)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
The association object used in Daily-to-Link relation
-
__init__
(daily=None, link=None, rank=0)¶
Methods
__init__
([daily, link, rank])Attributes
daily
daily_id
link
stalker.models.link.Link instances related to the Daily link_id
metadata
plural_class_name
the plural name of this class query
rank
-
plural_class_name
¶ the plural name of this class
-
link
¶ stalker.models.link.Link instances related to the Daily instance.
Attach the same
Link
s that are linked as an output to a certainVersion
s instance to this attribute.This attribute is an association_proxy so and the real attribute that the data is related to is the
link_relations
attribute.You can use the
link_relations
attribute to change therank
attribute of theDailyLink
instance (which is the returned data), thus change the order of theLinks
.This is done in that way to be able to store the order of the links in this Daily instance.
-