You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several places in HasGeek code including coaster and baseframe refer to self.id or obj.id to retrieve the primary key. This is incorrect usage. The correct method per SQLAlchemy is the following:
Coaster's use of self.id is currently justified because all usage is within derivatives of IdMixin, which explicitly defines the id column. However, Baseframe's ticket remains valid.
Several places in HasGeek code including coaster and baseframe refer to
self.id
orobj.id
to retrieve the primary key. This is incorrect usage. The correct method per SQLAlchemy is the following:Note that the identity value here is a tuple and not a scalar as assumed by
obj.id
.The text was updated successfully, but these errors were encountered: