feat(src): add ticketing REST API and admin UI for tickets, settings, and branding

Introduce DRF views for ticket creation, listing, updating, and commenting, integrate admin registrations for new models, and provide a demo data command to seed initial content. This enables full project management workflow within the backend.
This commit is contained in:
sankalp committed 2026-06-28 14:16:16 +05:45
1 parent 57c6984c66
commit ab0e71f7eb
85 files changed
+8257 -145

No files matched your search

+27 -3
View File
@@ -1,5 +1,29 @@
"""generated with djinit"""
from django.contrib import admin
# Register your models here.
from src.projects.models import Project, ProjectMember
class ProjectMemberInline(admin.TabularInline):
model = ProjectMember
extra = 1
@admin.register(Project)
class ProjectAdmin(admin.ModelAdmin):
list_display = (
"id",
"name",
"ticket_prefix",
"color",
"start_date",
"end_date",
"pinned_date",
)
search_fields = ("name", "ticket_prefix")
inlines = (ProjectMemberInline,)
@admin.register(ProjectMember)
class ProjectMemberAdmin(admin.ModelAdmin):
list_display = ("id", "project", "user")
search_fields = ("project__name", "user__email")