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

+25 -3
View File
@@ -1,5 +1,27 @@
"""generated with djinit"""
from django.conf import settings
from django.db import models
# Create your models here.
class ProjectNote(models.Model):
project = models.ForeignKey(
"projects.Project", on_delete=models.CASCADE, related_name="notes"
)
created_by = models.ForeignKey(
settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name="project_notes"
)
title = models.CharField(max_length=255)
content = models.TextField(blank=True, null=True)
note_date = models.DateField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
db_table = "project_notes"
verbose_name = "Project Note"
verbose_name_plural = "Project Notes"
indexes = [
models.Index(fields=["project", "note_date"]),
]
def __str__(self):
return f"{self.title} - {self.project.name}"