feat(src/projects): add Project and ProjectMember models with API serializers and views

Implement project management infrastructure to support ticket workflows and dashboard statistics
This commit is contained in:
sankalp committed 2026-06-25 23:09:28 +05:45
1 parent 0851411be7
commit 03bda8889b
5 files changed
+313 -16

No files matched your search

+28 -3
View File
@@ -1,5 +1,30 @@
"""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")