From 7a81eec537efa36ba8183da47e43c3f3988e5469 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 15 Oct 2020 14:10:30 +0100 Subject: isorting stuff --- ctrack/register/forms.py | 8 ++++---- ctrack/register/models.py | 2 +- ctrack/register/urls.py | 2 +- ctrack/register/views.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'ctrack/register') diff --git a/ctrack/register/forms.py b/ctrack/register/forms.py index 2afc1a1..9f8aec5 100644 --- a/ctrack/register/forms.py +++ b/ctrack/register/forms.py @@ -1,18 +1,18 @@ from crispy_forms.helper import FormHelper -from crispy_forms.layout import Button, ButtonHolder, Layout, Submit, Hidden, Field +from crispy_forms.layout import Button, ButtonHolder, Field, Hidden, Layout, Submit from django import forms from django.core.exceptions import ValidationError from django.shortcuts import get_object_or_404 from django.urls import reverse from ctrack.caf.models import CAF -from ctrack.organisations.models import Person, Organisation +from ctrack.organisations.models import Organisation, Person from ctrack.register.models import ( + CAFSingleDateEvent, + CAFTwinDateEvent, EngagementEvent, EngagementType, - CAFSingleDateEvent, SingleDateTimeEvent, - CAFTwinDateEvent, ) diff --git a/ctrack/register/models.py b/ctrack/register/models.py index 118dfae..932dd69 100644 --- a/ctrack/register/models.py +++ b/ctrack/register/models.py @@ -1,7 +1,7 @@ import datetime from datetime import date as std_date from enum import Enum, auto -from typing import Optional, Dict +from typing import Dict, Optional from django.contrib.auth import get_user_model from django.db import models diff --git a/ctrack/register/urls.py b/ctrack/register/urls.py index 1cdd92f..81ea445 100644 --- a/ctrack/register/urls.py +++ b/ctrack/register/urls.py @@ -2,8 +2,8 @@ from django.urls import path from ctrack.register.views import ( EngagementEventCreate, - EngagementEventDelete, EngagementEventCreateFromCaf, + EngagementEventDelete, SingleDateTimeEventCreate, ) diff --git a/ctrack/register/views.py b/ctrack/register/views.py index 3fd8f1f..f5d37b4 100644 --- a/ctrack/register/views.py +++ b/ctrack/register/views.py @@ -2,11 +2,11 @@ from django.contrib.auth import get_user_model from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponseRedirect from django.urls import reverse_lazy -from django.views.generic import FormView, DeleteView, CreateView +from django.views.generic import CreateView, DeleteView, FormView from ctrack.caf.models import CAF from ctrack.organisations.models import Organisation -from ctrack.register.forms import EngagementEventCreateForm, CreateSimpleDateTimeEventForm +from ctrack.register.forms import CreateSimpleDateTimeEventForm, EngagementEventCreateForm from ctrack.register.models import EngagementEvent, SingleDateTimeEvent -- cgit v1.2.3