Ok my bad, after reading more I've realized that I don't need to specify
remote for custom relationships between 2 distinct classes, using
primaryjoin() should be enough...
Il giorno lunedì 28 agosto 2017 17:27:41 UTC+2, Martino Io ha scritto:
>
> I'm trying to add a simple relationship
I'm trying to add a simple relationship into 2 different ORM classes which
are not bound by DB foreign keys.
The linked
example
http://docs.sqlalchemy.org/en/latest/orm/join_conditions.html#creating-custom-foreign-conditions
provides a self referential class which passes the column attribute
that your imports are structured
as simply as possible and avoid circular dependencies.
Hope that helps,
Simon
On Mon, Mar 2, 2015 at 11:57 AM, Martino Io martino8...@gmail.com wrote:
Hi Simon, definitely multiple imports is the issue here, however I don't
know how to get rid
just be me skipping the basics, however
if I don't import the mybase in both modules I cannot use it, since it
should throw an undefined variable exception.
2015-03-02 12:47 GMT+01:00 Simon King si...@simonking.org.uk:
On Mon, Mar 2, 2015 at 11:29 AM, Martino Io martino8...@gmail.com wrote
Hello, I've been busy writing an application which now has grown
considerably, it spans across several packages/modules totalling 200K lines
of python code.
Recently I made some changes to the structure and decided to split several
classes into separate modules for greater flexibility; the