Skip to content

Commit

Permalink
LineItem model also needs UUID methods (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
jace authored Sep 19, 2024
1 parent 22bbb72 commit 51267f5
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions boxoffice/models/line_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@
from coaster.sqlalchemy import JsonDict
from coaster.utils import isoweek_datetime, midnight_to_utc, utcnow

from . import BaseMixin, DynamicMapped, Mapped, Model, db, relationship, sa, timestamptz
from . import (
BaseMixin,
DynamicMapped,
Mapped,
Model,
UuidMixin,
db,
relationship,
sa,
timestamptz,
)
from .enums import LineItemStatus
from .user import User

Expand Down Expand Up @@ -59,7 +69,7 @@ class Assignee(BaseMixin[int, User], Model):
)


class LineItem(BaseMixin[UUID, User], Model):
class LineItem(UuidMixin, BaseMixin[UUID, User], Model):
"""
A line item in a sale receipt.
Expand Down

0 comments on commit 51267f5

Please sign in to comment.