class Foo(Orm): pass
class Bar(Orm):
foo_id = Field(Foo)
Could I make something like this work:
f = testdata.create_foo(bars_count=2)
for b in f.bars:
...
It would basically check the internal Orm list and see if anything matches .models_name and then make sure the match has a reference to Foo and then create however many count specified.
Let's say we've got this:
Could I make something like this work:
It would basically check the internal Orm list and see if anything matches
.models_name
and then make sure the match has a reference toFoo
and then create however many count specified.