Bases: sqlalchemy.ext.declarative.api.Base
The association object used in Daily-to-Link relation
Methods
| __init__([daily, link, rank]) |
Attributes
| daily | |
| daily_id | |
| link | stalker.models.link.Link instances related to the Daily |
| link_id | |
| metadata | A collection of Table objects and their associated schema constructs. |
| plural_class_name | the plural name of this class |
| query | ORM-level SQL construction object. |
| rank |
the plural name of this class
stalker.models.link.Link instances related to the Daily instance.
Attach the same Links that are linked as an output to a certain Versions 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 the rank attribute of the DailyLink instance (which is the returned data), thus change the order of the Links.
This is done in that way to be able to store the order of the links in this Daily instance.