Fix: ORM Borked when models were split into their own files and product could not find this relation
This commit is contained in:
parent
088982c6d4
commit
e8d178a248
@ -1,6 +1,7 @@
|
||||
import uuid
|
||||
|
||||
from barker.models.meta import Base
|
||||
from barker.models.modifier_categories_products import modifier_categories_products
|
||||
from sqlalchemy import Column, text
|
||||
from sqlalchemy.dialects.postgresql import UUID
|
||||
from sqlalchemy.orm import relationship
|
||||
@ -14,7 +15,7 @@ class Product(Base):
|
||||
versions = relationship("ProductVersion")
|
||||
modifier_categories = relationship(
|
||||
"ModifierCategory",
|
||||
secondary="modifier_categories_products",
|
||||
secondary=modifier_categories_products,
|
||||
order_by="ModifierCategory.sort_order",
|
||||
backref="products",
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user