- Implement automated payment tracking with Django signals - Fix duplicate transaction creation with unique referenz system - Add calendar system with CRUD operations and event management - Reorganize navigation menu (rename sections, move admin functions) - Replace Geschichte editor with EasyMDE markdown editor - Add management commands for balance reconciliation - Create missing transactions for previously paid payments - Ensure account balances accurately reflect all payment activity Features added: - Calendar entries creation and administration via menu - Payment status tracking with automatic balance updates - Duplicate prevention for payment transactions - Markdown editor with live preview for Geschichte pages - Database reconciliation tools for payment/balance sync Bug fixes: - Resolved IntegrityError on payment status changes - Fixed missing account balance updates for paid payments - Prevented duplicate balance deductions on re-saves - Corrected menu structure and admin function placement
23 lines
607 B
Python
23 lines
607 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class StiftungConfig(AppConfig):
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
name = "stiftung"
|
|
|
|
def ready(self):
|
|
# Configure admin site with 2FA support
|
|
try:
|
|
from django_otp.admin import OTPAdminSite
|
|
from django.contrib import admin
|
|
admin.site.__class__ = OTPAdminSite
|
|
except ImportError:
|
|
# django-otp not installed
|
|
pass
|
|
|
|
# Import signals to register them
|
|
try:
|
|
import stiftung.signals
|
|
except ImportError:
|
|
pass
|