Fix test failures and workload/websocket behavior
This commit is contained in:
@@ -5,7 +5,7 @@ that can be used to quickly set up new projects.
|
||||
"""
|
||||
import uuid
|
||||
from sqlalchemy import Column, String, Text, Boolean, DateTime, ForeignKey, JSON
|
||||
from sqlalchemy.orm import relationship
|
||||
from sqlalchemy.orm import relationship, synonym
|
||||
from sqlalchemy.sql import func
|
||||
from app.core.database import Base
|
||||
|
||||
@@ -53,6 +53,10 @@ class ProjectTemplate(Base):
|
||||
# Relationships
|
||||
owner = relationship("User", foreign_keys=[owner_id])
|
||||
|
||||
# Backward-compatible aliases for older code/tests
|
||||
created_by = synonym("owner_id")
|
||||
default_statuses = synonym("task_statuses")
|
||||
|
||||
|
||||
# Default template data for system templates
|
||||
SYSTEM_TEMPLATES = [
|
||||
|
||||
Reference in New Issue
Block a user