Reformat code after manual edits to maintain CI compliance
- Apply Black formatting to admin.py, forms.py, and views.py after manual edits - Fix import statement ordering with isort - Ensure all manually edited files meet automated code quality standards - Maintain CI/CD pipeline compliance for continued automated deployment
This commit is contained in:
@@ -5,11 +5,24 @@ from django.utils.html import format_html
|
|||||||
from django.utils.safestring import mark_safe
|
from django.utils.safestring import mark_safe
|
||||||
|
|
||||||
from . import models
|
from . import models
|
||||||
from .models import (AppConfiguration, AuditLog, BackupJob, BankTransaction,
|
from .models import (
|
||||||
CSVImport, Destinataer, DestinataerUnterstuetzung,
|
AppConfiguration,
|
||||||
DokumentLink, Foerderung, Land, Paechter, Person,
|
AuditLog,
|
||||||
Rentmeister, StiftungsKonto, UnterstuetzungWiederkehrend,
|
BackupJob,
|
||||||
Verwaltungskosten)
|
BankTransaction,
|
||||||
|
CSVImport,
|
||||||
|
Destinataer,
|
||||||
|
DestinataerUnterstuetzung,
|
||||||
|
DokumentLink,
|
||||||
|
Foerderung,
|
||||||
|
Land,
|
||||||
|
Paechter,
|
||||||
|
Person,
|
||||||
|
Rentmeister,
|
||||||
|
StiftungsKonto,
|
||||||
|
UnterstuetzungWiederkehrend,
|
||||||
|
Verwaltungskosten,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@admin.register(CSVImport)
|
@admin.register(CSVImport)
|
||||||
|
|||||||
@@ -4,11 +4,22 @@ from django import forms
|
|||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
|
|
||||||
from .models import (BankTransaction, Destinataer, DestinataerNotiz,
|
from .models import (
|
||||||
DestinataerUnterstuetzung, DokumentLink, Foerderung, Land,
|
BankTransaction,
|
||||||
LandAbrechnung, Paechter, Person, Rentmeister,
|
Destinataer,
|
||||||
StiftungsKonto, UnterstuetzungWiederkehrend,
|
DestinataerNotiz,
|
||||||
Verwaltungskosten)
|
DestinataerUnterstuetzung,
|
||||||
|
DokumentLink,
|
||||||
|
Foerderung,
|
||||||
|
Land,
|
||||||
|
LandAbrechnung,
|
||||||
|
Paechter,
|
||||||
|
Person,
|
||||||
|
Rentmeister,
|
||||||
|
StiftungsKonto,
|
||||||
|
UnterstuetzungWiederkehrend,
|
||||||
|
Verwaltungskosten,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class RentmeisterForm(forms.ModelForm):
|
class RentmeisterForm(forms.ModelForm):
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ from django.conf import settings
|
|||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
from django.contrib.auth.decorators import login_required
|
from django.contrib.auth.decorators import login_required
|
||||||
from django.core.paginator import Paginator
|
from django.core.paginator import Paginator
|
||||||
from django.db.models import (Avg, Count, DecimalField, F, IntegerField, Q,
|
from django.db.models import Avg, Count, DecimalField, F, IntegerField, Q, Sum, Value
|
||||||
Sum, Value)
|
|
||||||
from django.db.models.functions import Cast, Coalesce, NullIf, Replace
|
from django.db.models.functions import Cast, Coalesce, NullIf, Replace
|
||||||
from django.http import JsonResponse
|
from django.http import JsonResponse
|
||||||
from django.shortcuts import get_object_or_404, redirect, render
|
from django.shortcuts import get_object_or_404, redirect, render
|
||||||
@@ -21,10 +20,20 @@ from django.views.decorators.csrf import csrf_exempt
|
|||||||
from rest_framework.decorators import api_view
|
from rest_framework.decorators import api_view
|
||||||
from rest_framework.response import Response
|
from rest_framework.response import Response
|
||||||
|
|
||||||
from .models import (AppConfiguration, CSVImport, Destinataer,
|
from .models import (
|
||||||
DestinataerUnterstuetzung, DokumentLink, Foerderung, Land,
|
AppConfiguration,
|
||||||
LandAbrechnung, LandVerpachtung, Paechter, Person,
|
CSVImport,
|
||||||
UnterstuetzungWiederkehrend)
|
Destinataer,
|
||||||
|
DestinataerUnterstuetzung,
|
||||||
|
DokumentLink,
|
||||||
|
Foerderung,
|
||||||
|
Land,
|
||||||
|
LandAbrechnung,
|
||||||
|
LandVerpachtung,
|
||||||
|
Paechter,
|
||||||
|
Person,
|
||||||
|
UnterstuetzungWiederkehrend,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def get_pdf_generator():
|
def get_pdf_generator():
|
||||||
@@ -211,10 +220,18 @@ def gramps_debug_api(_request):
|
|||||||
|
|
||||||
from stiftung.models import DestinataerNotiz, DestinataerUnterstuetzung
|
from stiftung.models import DestinataerNotiz, DestinataerUnterstuetzung
|
||||||
|
|
||||||
from .forms import (DestinataerForm, DestinataerNotizForm,
|
from .forms import (
|
||||||
DestinataerUnterstuetzungForm, DokumentLinkForm,
|
DestinataerForm,
|
||||||
FoerderungForm, LandForm, PaechterForm, PersonForm,
|
DestinataerNotizForm,
|
||||||
UnterstuetzungForm, UnterstuetzungMarkAsPaidForm)
|
DestinataerUnterstuetzungForm,
|
||||||
|
DokumentLinkForm,
|
||||||
|
FoerderungForm,
|
||||||
|
LandForm,
|
||||||
|
PaechterForm,
|
||||||
|
PersonForm,
|
||||||
|
UnterstuetzungForm,
|
||||||
|
UnterstuetzungMarkAsPaidForm,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def home(request):
|
def home(request):
|
||||||
|
|||||||
Reference in New Issue
Block a user