stalker.models.review.DailyLink¶
-
class
stalker.models.review.DailyLink(daily=None, link=None, rank=0)[source]¶ Bases:
sqlalchemy.ext.declarative.api.BaseThe association object used in Daily-to-Link relation
-
__init__(daily=None, link=None, rank=0)¶
Methods
__init__([daily, link, rank])Attributes
dailydaily_idlinkstalker.models.link.Link instances related to the Daily link_idmetadataplural_class_namethe plural name of this class queryrank-
plural_class_name¶ the plural name of this class
-
link¶ stalker.models.link.Link instances related to the Daily instance.
Attach the same
Links that are linked as an output to a certainVersions instance to this attribute.This attribute is an association_proxy so and the real attribute that the data is related to is the
link_relationsattribute.You can use the
link_relationsattribute to change therankattribute of theDailyLinkinstance (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.
-