mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-12-22 13:51:49 +01:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
d844f54f82
commit
6e73c50ff6
3 changed files with 7 additions and 6 deletions
|
@ -101,9 +101,9 @@ class CharacterAdminForm(ModelForm):
|
|||
"path__race",
|
||||
"path__profile",
|
||||
)
|
||||
self.fields[
|
||||
"racial_capability"
|
||||
].queryset = models.RacialCapability.objects.select_related("race")
|
||||
self.fields["racial_capability"].queryset = (
|
||||
models.RacialCapability.objects.select_related("race")
|
||||
)
|
||||
|
||||
|
||||
class PartyInline(admin.TabularInline):
|
||||
|
|
|
@ -54,9 +54,9 @@ class AddPathForm(forms.Form):
|
|||
class CharacterForm(forms.ModelForm):
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
super().__init__(*args, **kwargs)
|
||||
self.fields[
|
||||
"racial_capability"
|
||||
].queryset = RacialCapability.objects.select_related("race")
|
||||
self.fields["racial_capability"].queryset = (
|
||||
RacialCapability.objects.select_related("race")
|
||||
)
|
||||
self.fields["damage_reduction"].widget.attrs.update({"rows": 2})
|
||||
self.fields["equipment"].widget.attrs.update({"rows": 3})
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ Including another URLconf
|
|||
1. Import the include() function: from django.urls import include, path
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib import admin
|
||||
|
|
Loading…
Reference in a new issue