Refactor contact handling across backend and frontend
Replaced usage of "ContactPerson" with "Contact" for consistency across the codebase. Updated related component props, state variables, API calls, and database queries to align with the new model. Also enhanced backend functionality with stricter validations and added support for handling active pgroups in contact management.
This commit is contained in:
@ -8,7 +8,7 @@ def get_shipments(db: Session):
|
||||
shipments = (
|
||||
db.query(Shipment)
|
||||
.options(
|
||||
joinedload(Shipment.contact_person),
|
||||
joinedload(Shipment.contact),
|
||||
joinedload(Shipment.return_address),
|
||||
joinedload(Shipment.proposal),
|
||||
joinedload(Shipment.dewars),
|
||||
@ -30,7 +30,7 @@ def get_shipment_by_id(db: Session, id: int):
|
||||
shipment = (
|
||||
db.query(Shipment)
|
||||
.options(
|
||||
joinedload(Shipment.contact_person),
|
||||
joinedload(Shipment.contact),
|
||||
joinedload(Shipment.return_address),
|
||||
joinedload(Shipment.proposal),
|
||||
joinedload(Shipment.dewars),
|
||||
|
Reference in New Issue
Block a user