forked from Fediversity/Fediversity
expand to multiple lines to allow commenting parts
This commit is contained in:
parent
1ebea118cc
commit
014c3efc70
3 changed files with 29 additions and 6 deletions
|
@ -1,5 +1,10 @@
|
|||
from django.contrib import admin
|
||||
from panel.models import Configuration, PeertubeConfig, PixelfedConfig, MastodonConfig
|
||||
from panel.models import (
|
||||
Configuration,
|
||||
PeertubeConfig,
|
||||
PixelfedConfig,
|
||||
MastodonConfig,
|
||||
)
|
||||
|
||||
|
||||
class MastodonConfigInline(admin.StackedInline):
|
||||
|
@ -15,8 +20,11 @@ class PeertubeConfigInline(admin.StackedInline):
|
|||
|
||||
|
||||
class DeployFormModelServices(admin.ModelAdmin):
|
||||
inlines = [MastodonConfigInline,
|
||||
PixelfedConfigInline, PeertubeConfigInline]
|
||||
inlines = [
|
||||
MastodonConfigInline,
|
||||
PixelfedConfigInline,
|
||||
PeertubeConfigInline,
|
||||
]
|
||||
|
||||
|
||||
admin.site.register(Configuration, DeployFormModelServices)
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
from django import forms
|
||||
from panel.models import Configuration, PeertubeConfig, PixelfedConfig, MastodonConfig
|
||||
from panel.models import (
|
||||
Configuration,
|
||||
PeertubeConfig,
|
||||
PixelfedConfig,
|
||||
MastodonConfig,
|
||||
)
|
||||
|
||||
|
||||
class Deployment(forms.ModelForm):
|
||||
|
|
|
@ -7,8 +7,18 @@ from django.shortcuts import get_object_or_404
|
|||
from django.urls import reverse_lazy
|
||||
from panel.models import Configuration
|
||||
from panel import forms
|
||||
from .models import Configuration, MastodonConfig, PixelfedConfig, PeertubeConfig
|
||||
from .forms import Deployment, MastodonConfigForm, PixelfedConfigForm, PeertubeConfigForm
|
||||
from .models import (
|
||||
Configuration,
|
||||
MastodonConfig,
|
||||
PixelfedConfig,
|
||||
PeertubeConfig,
|
||||
)
|
||||
from .forms import (
|
||||
Deployment,
|
||||
MastodonConfigForm,
|
||||
PixelfedConfigForm,
|
||||
PeertubeConfigForm,
|
||||
)
|
||||
|
||||
|
||||
class Index(TemplateView):
|
||||
|
|
Loading…
Add table
Reference in a new issue