Closed NicoHood closed 1 year ago
Good catch.
Doc should show model instance not str
.
I intended to support both but have not implemented.
The str
option allows circular referencing (django and my support similar approaches where it loads object by name reference)
This was resolved in #277; see https://pyairtable.readthedocs.io/en/stable/orm.html#linked-records
Look at this: https://pyairtable.readthedocs.io/en/latest/orm.html
It says:
The second parameter is a string. In the code itself this is documented as object: https://github.com/gtalarico/pyairtable/blob/main/pyairtable/orm/fields.py#L43
I guess that must be corrected in one of the two.