mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 01:27:03 +02:00
Fix formatting and mypy warning
This commit is contained in:
parent
884a58cf10
commit
1fbd0506ff
16 changed files with 3 additions and 17 deletions
|
@ -70,7 +70,6 @@ def in_domains(domain):
|
|||
@require_http_methods(["GET"])
|
||||
@login_required
|
||||
def available(request, domain=""):
|
||||
|
||||
"""Is a given domain available or not.
|
||||
|
||||
Response is a JSON dictionary with the key "available" and value true or
|
||||
|
|
|
@ -10,7 +10,6 @@ import django_fsm # type: ignore
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
|
|
|
@ -8,7 +8,6 @@ import django_fsm # type: ignore
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("registrar", "0001_initial"),
|
||||
]
|
||||
|
|
|
@ -4,7 +4,6 @@ from django.db import migrations, models
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("registrar", "0002_domain_host_nameserver_hostip_and_more"),
|
||||
]
|
||||
|
|
|
@ -4,7 +4,6 @@ from django.db import migrations, models
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
(
|
||||
"registrar",
|
||||
|
|
|
@ -4,7 +4,6 @@ from django.db import migrations, models
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("registrar", "0004_domainapplication_federal_agency"),
|
||||
]
|
||||
|
|
|
@ -5,7 +5,6 @@ import phonenumber_field.modelfields # type: ignore
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("registrar", "0005_domainapplication_city_and_more"),
|
||||
]
|
||||
|
|
|
@ -4,7 +4,6 @@ from django.db import migrations, models
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("registrar", "0006_alter_contact_phone"),
|
||||
]
|
||||
|
|
|
@ -5,7 +5,6 @@ import django.utils.timezone
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("registrar", "0007_domainapplication_more_organization_information_and_more"),
|
||||
]
|
||||
|
|
|
@ -4,7 +4,6 @@ from django.db import migrations, models
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("registrar", "0008_remove_userprofile_created_at_and_more"),
|
||||
]
|
||||
|
|
|
@ -4,7 +4,6 @@ from django.db import migrations, models
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("registrar", "0009_domainapplication_federally_recognized_tribe_and_more"),
|
||||
]
|
||||
|
|
|
@ -481,7 +481,7 @@ class DomainApplication(TimeStampedModel):
|
|||
send_templated_email(
|
||||
"emails/submission_confirmation.txt",
|
||||
self.submitter.email,
|
||||
context={"id": self.id, "domain_name": self.requested_domain.name}
|
||||
context={"id": self.id, "domain_name": self.requested_domain.name},
|
||||
)
|
||||
|
||||
@transition(field="status", source=STARTED, target=SUBMITTED)
|
||||
|
|
|
@ -13,7 +13,6 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
@receiver(post_save, sender=User)
|
||||
def handle_profile(sender, instance, **kwargs):
|
||||
|
||||
"""Method for when a User is saved.
|
||||
|
||||
If the user is being created, then create a matching UserProfile. Otherwise
|
||||
|
|
|
@ -78,7 +78,6 @@ class MockUserLogin:
|
|||
|
||||
|
||||
class MockSESClient(Mock):
|
||||
|
||||
EMAILS_SENT: List[Dict] = []
|
||||
|
||||
def send_email(self, *args, **kwargs):
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import logging
|
||||
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.http import Http404
|
||||
from django.http import Http404, HttpResponse
|
||||
from django.shortcuts import redirect, render
|
||||
from django.urls import resolve, reverse
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
@ -304,7 +304,7 @@ class ApplicationWizard(LoginRequiredMixin, TemplateView):
|
|||
are_valid = (form.is_valid() for form in forms)
|
||||
return all(are_valid)
|
||||
|
||||
def post(self, request, *args, **kwargs):
|
||||
def post(self, request, *args, **kwargs) -> HttpResponse:
|
||||
"""This method handles POST requests."""
|
||||
# if accessing this class directly, redirect to the first step
|
||||
if self.__class__ == ApplicationWizard:
|
||||
|
|
|
@ -7,7 +7,6 @@ from registrar.forms import EditProfileForm
|
|||
|
||||
@login_required
|
||||
def edit_profile(request):
|
||||
|
||||
"""View for a profile editing page."""
|
||||
|
||||
if request.method == "POST":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue