- 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
24 lines
987 B
Python
24 lines
987 B
Python
from django.urls import path
|
|
|
|
from apps.finance.views import (
|
|
ExpenseCreateView,
|
|
ExpenseListView,
|
|
InvoiceCreateView,
|
|
InvoiceDetailView,
|
|
InvoiceListView,
|
|
PaymentCreateView,
|
|
TeamPaymentCreateView,
|
|
TeamPaymentListView,
|
|
)
|
|
|
|
urlpatterns = [
|
|
path("finance/invoices/", InvoiceListView.as_view(), name="invoice_list"),
|
|
path("finance/invoices/create/", InvoiceCreateView.as_view(), name="invoice_create"),
|
|
path("finance/invoices/<int:pk>/", InvoiceDetailView.as_view(), name="invoice_detail"),
|
|
path("finance/payments/create/", PaymentCreateView.as_view(), name="payment_create"),
|
|
path("finance/expenses/", ExpenseListView.as_view(), name="expense_list"),
|
|
path("finance/expenses/create/", ExpenseCreateView.as_view(), name="expense_create"),
|
|
path("finance/team-payments/", TeamPaymentListView.as_view(), name="team_payment_list"),
|
|
path("finance/team-payments/create/", TeamPaymentCreateView.as_view(), name="team_payment_create"),
|
|
]
|