- New Features * Introduce CustomUser with role field and admin integration * Add ProjectMembership model linking users to projects * Add Ticket model with status, type, creator, and project relationships * Register CustomUser and ProjectMembership in Django admin with list views * Add URLs and views for account management and ticket CRUD operations - Enhancements * Provide pagination and filtering for ticket listings * Improve admin UI with role‑specific fieldsets - Bug Fixes * Remove obsolete serializers and placeholder files
12 lines
401 B
Python
12 lines
401 B
Python
from django.contrib import admin
|
|
|
|
from apps.activity.models import ActivityLog
|
|
|
|
|
|
@admin.register(ActivityLog)
|
|
class ActivityLogAdmin(admin.ModelAdmin):
|
|
list_display = ["actor", "verb", "content_type", "object_id", "timestamp"]
|
|
list_filter = ["verb", "timestamp"]
|
|
search_fields = ["actor__username", "verb"]
|
|
readonly_fields = ["actor", "verb", "content_type", "object_id", "timestamp"]
|