aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/register
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-15 14:10:30 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-15 14:10:30 +0100
commit7a81eec537efa36ba8183da47e43c3f3988e5469 (patch)
treed03bd1821fa192367b61866d81c9fbadeff02d17 /ctrack/register
parent04326801570d17918a48a9a64b164ea9464f3562 (diff)
isorting stuff
Diffstat (limited to 'ctrack/register')
-rw-r--r--ctrack/register/forms.py8
-rw-r--r--ctrack/register/models.py2
-rw-r--r--ctrack/register/urls.py2
-rw-r--r--ctrack/register/views.py4
4 files changed, 8 insertions, 8 deletions
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