This commit is contained in:
Niko Abeler 2023-08-25 21:50:09 +02:00
parent a9648c12b8
commit a7294f309a
11 changed files with 12 additions and 17 deletions

View File

@ -1,7 +1,5 @@
from typing import Any
from django import forms
from guild.models import NPC, PlaySession, Character, Reward
from django.utils.translation import gettext as _
class PlaySessionCharacterForm(forms.ModelMultipleChoiceField):

View File

@ -1,3 +1 @@
from django.test import TestCase
# Create your tests here.

View File

@ -1,6 +1,6 @@
from datetime import date
from django.urls import reverse
from django.views.generic import TemplateView, ListView, DetailView
from django.views.generic import TemplateView
from django.views.generic.edit import CreateView
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.models import User

View File

@ -1,11 +1,6 @@
from typing import Any, Dict, Optional, Type
from django.forms.models import BaseModelForm
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
from django.views.generic import TemplateView, ListView, DetailView
from django.views.generic import ListView, DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.contrib.auth.mixins import LoginRequiredMixin
from guild.forms import PlaySessionForm
from guild.models import Adventure, PlaySession

View File

@ -1,4 +1,4 @@
from django.views.generic import TemplateView, ListView, DetailView
from django.views.generic import ListView, DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.contrib.auth.mixins import LoginRequiredMixin
from django.db.models import Q

View File

@ -1,4 +1,4 @@
from django.views.generic import TemplateView, ListView, DetailView
from django.views.generic import ListView, DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.contrib.auth.mixins import LoginRequiredMixin
from guild.models import NPC

View File

@ -1,4 +1,4 @@
from django.views.generic import TemplateView, ListView, DetailView
from django.views.generic import DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.contrib.auth.mixins import LoginRequiredMixin

View File

@ -1,9 +1,8 @@
from typing import Any, Dict, Optional, Type
from django.forms.models import BaseModelForm
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
from django.urls import reverse
from django.views.generic import TemplateView, ListView, DetailView
from django.views.generic import DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.contrib.auth.mixins import LoginRequiredMixin
from guild.forms import PlaySessionForm, RewardForm

View File

@ -1,4 +1,4 @@
from django.views.generic import TemplateView, ListView, DetailView
from django.views.generic import DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse

View File

@ -1,3 +1,5 @@
# ruff: noqa
import os
from .default import *

3
pyproject.toml Normal file
View File

@ -0,0 +1,3 @@
[tool.ruff]
# Allow lines to be as long as 120 characters.
line-length = 120