├── .gitignore ├── LICENSE ├── README.md ├── job_application ├── __init__.py ├── admin.py ├── apps.py ├── constants.py ├── forms.py ├── migrations │ ├── 0001_initial.py │ ├── 0002_create_superuser.py │ └── __init__.py ├── models.py ├── static │ └── job_application │ │ └── css │ │ └── job_application.css ├── templates │ └── job_application │ │ ├── base.html │ │ ├── form_page.html │ │ ├── form_page_w_summary.html │ │ └── thank_you.html ├── urls.py └── views.py ├── manage.py ├── multipage_form_demo ├── __init__.py ├── settings.py ├── urls.py └── wsgi.py ├── poetry.lock └── pyproject.toml /.gitignore: -------------------------------------------------------------------------------- 1 | *.*~ 2 | *.pyc 3 | db.sqlite3 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2017-2022 Imaginary Landscape, LLC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Django Multipage ModelForm 2 | 3 | This is a demonstration project for "django-multipage-form", an app that 4 | helps in the construction of Django model forms that span more than a 5 | single page. 6 | 7 | 8 | ## Features 9 | 10 | The "multipage_form" app helps you to separate sections of a long model 11 | form across several pages. For example, the "job application" app in 12 | this example project defines a section where applicants enter their 13 | personal information, another for employment expeience, and so on. 14 | 15 | The app allows you to implement different branches or "routes" through 16 | the progression of form pages. Two users who respond in different ways 17 | on a given page may then be routed to different pages, depending the 18 | values entered. 19 | 20 | The app also provides a tool that allows the user to return to a form 21 | page they have already completed, and a related tool that generates a 22 | summary of all completed form pages. These features allow the user to 23 | review and edit their responses before the final submit button is 24 | clicked. 25 | 26 | 27 | ## System Requirements 28 | 29 | Python 3 30 | 31 | 32 | ## Installation 33 | 34 | Create and activate a Python 3 virtual environment, and install 35 | dependencies with poetry: 36 | 37 | ```bash 38 | (new_virtual_env)$ poetry install 39 | ``` 40 | 41 | This should install Django 3.2 and the "django-multipage-form" app. 42 | 43 | 44 | ## Configuration 45 | 46 | This project uses the file-based sqlite3 database that comes bundled 47 | with Django, so no special database setup is necessary. All you need to 48 | do is run the "migrate" management command to create the tables: 49 | 50 | ```bash 51 | (new_virtual_env)$ ./manage.py migrate 52 | Operations to perform: 53 | Apply all migrations: admin, auth, contenttypes, job_application, multipage_form, sessions 54 | Running migrations: 55 | ... 56 | Applying multipage_form.0001_initial... OK 57 | Applying job_application.0001_initial... OK 58 | Applying job_application.0002_auto_20220211_0317... OK 59 | ... 60 | ``` 61 | 62 | ### Webpage 63 | 64 | You should now be able to run the project with Django's built-in 65 | `runserver` command on port 8000 (or any available port). 66 | 67 | ```bash 68 | (new_virtual_env)$ ./manage.py runserver 8000 69 | ``` 70 | 71 | You should then be able to use the app in your browser at 72 | `localhost:8000`. Fill in form fields with test data and have fun! 73 | 74 | 75 | ### Admin 76 | 77 | You should also be able to log into the Django admin at 78 | `localhost:8000/admin`. 79 | 80 | Use the username "admin" and the password "1234" to log in as a 81 | superuser that was created when migrations were run. Form submissions 82 | should appear in the admin under the "job_application" app. 83 | 84 | 85 | ## Use in Your Own Projects 86 | 87 | For further details on how to use the "multipage_form" app in your own 88 | projects, please see that app's README: 89 | 90 | https://github.com/ImaginaryLandscape/django-multipage-form 91 | -------------------------------------------------------------------------------- /job_application/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImaginaryLandscape/multipage-form-demo/372253d8130c1cf39a0f5b93f5fc894a4ea7468c/job_application/__init__.py -------------------------------------------------------------------------------- /job_application/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import JobApplication 3 | 4 | class JobApplicationAdmin(admin.ModelAdmin): 5 | model = JobApplication 6 | list_display = ('created', 'first_name', 'last_name') 7 | exclude = ('session_key',) 8 | 9 | admin.site.register(JobApplication, JobApplicationAdmin) 10 | -------------------------------------------------------------------------------- /job_application/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class JobApplicationConfig(AppConfig): 5 | name = 'job_application' 6 | verbose_name = 'Job Application' 7 | -------------------------------------------------------------------------------- /job_application/constants.py: -------------------------------------------------------------------------------- 1 | STAGE_1 = "1" 2 | STAGE_2 = "2" 3 | STAGE_3 = "3" 4 | COMPLETE = "Complete" 5 | 6 | STAGE_ORDER = [STAGE_1, STAGE_2, STAGE_3, COMPLETE] 7 | -------------------------------------------------------------------------------- /job_application/forms.py: -------------------------------------------------------------------------------- 1 | from django.core.exceptions import ValidationError 2 | from django.forms import RadioSelect 3 | from multipage_form.forms import MultipageForm, ChildForm 4 | from .models import JobApplication 5 | 6 | class JobApplicationForm(MultipageForm): 7 | model = JobApplication 8 | starting_form = "Stage1Form" 9 | 10 | class Stage1Form(ChildForm): 11 | display_name = "Personal Info" 12 | required_fields = ["first_name", "last_name"] 13 | next_form_class = "Stage2Form" 14 | 15 | class Meta: 16 | fields = ["first_name", "middle_name", "last_name"] 17 | 18 | 19 | class Stage2Form(ChildForm): 20 | display_name = "Education" 21 | required_fields = "__all__" 22 | next_form_class = "Stage3Form" 23 | 24 | class Meta: 25 | fields = ["education_level", "year_graduated"] 26 | help_text = { 27 | "education_level": "Indicate the highest level of education you have attained" 28 | } 29 | 30 | def clean_year_graduated(self): 31 | year = self.cleaned_data.get("year_graduated") 32 | if not year.isnumeric() or len(year) < 4: 33 | raise ValidationError("Enter a four-digit number indicating the year in which you graduated.") 34 | return year 35 | 36 | 37 | class Stage3Form(ChildForm): 38 | display_name = "Experience" 39 | required_fields = ["prior_company", "prior_experience"] 40 | 41 | class Meta: 42 | fields = ["prior_company", "prior_experience", "anything_more"] 43 | help_texts = { 44 | "anything_more": "Indicate if you would like to add a personal statement" 45 | } 46 | labels = { 47 | "prior_experience": "Describe your duties", 48 | "anything_more": "Anything more?" 49 | } 50 | widgets = { "anything_more": RadioSelect(choices=[(True, "Yes"), (False, "No")]) } 51 | 52 | def get_next_form_class(self): 53 | if self.instance.anything_more: 54 | return "Stage3bForm" 55 | return "Stage4Form" 56 | 57 | 58 | class Stage3bForm(ChildForm): 59 | display_name = "Personal Statement" 60 | next_form_class = "Stage4Form" 61 | 62 | class Meta: 63 | fields = ["personal_statement"] 64 | 65 | 66 | class Stage4Form(ChildForm): 67 | required_fields = "__all__" 68 | template_name = "job_application/form_page_w_summary.html" 69 | 70 | class Meta: 71 | fields = ["all_is_accurate"] 72 | labels = {"all_is_accurate": "Ready to submit to MegaCorp?"} 73 | -------------------------------------------------------------------------------- /job_application/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 3.2 on 2022-02-11 03:16 2 | 3 | from django.db import migrations, models 4 | import django.db.models.deletion 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | initial = True 10 | 11 | dependencies = [ 12 | ('multipage_form', '0001_initial'), 13 | ] 14 | 15 | operations = [ 16 | migrations.CreateModel( 17 | name='JobApplication', 18 | fields=[ 19 | ('multipagemodel_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='multipage_form.multipagemodel')), 20 | ('first_name', models.CharField(blank=True, max_length=20)), 21 | ('middle_name', models.CharField(blank=True, max_length=20)), 22 | ('last_name', models.CharField(blank=True, max_length=20)), 23 | ('education_level', models.CharField(blank=True, max_length=20)), 24 | ('year_graduated', models.CharField(blank=True, max_length=4)), 25 | ('prior_company', models.CharField(blank=True, max_length=20)), 26 | ('prior_experience', models.TextField(blank=True)), 27 | ('anything_more', models.BooleanField(default=False)), 28 | ('personal_statement', models.TextField(blank=True)), 29 | ('all_is_accurate', models.BooleanField(default=False)), 30 | ], 31 | bases=('multipage_form.multipagemodel',), 32 | ), 33 | ] 34 | -------------------------------------------------------------------------------- /job_application/migrations/0002_create_superuser.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 3.2 on 2022-02-11 03:17 2 | 3 | from django.db import migrations 4 | 5 | def add_superuser(apps, schema_editor): 6 | # Normally one uses `apps.get_model()` in a migration, but we 7 | # need a regular import here to have access to `set_password()`. 8 | from django.contrib.auth.models import User 9 | try: 10 | User.objects.get(username='admin') 11 | except User.DoesNotExist: 12 | superuser = User(username='admin', email='admin@example.com', is_staff=True, is_superuser=True) 13 | superuser.set_password('1234') 14 | superuser.save() 15 | else: 16 | # The user already exists, which is fine 17 | pass 18 | 19 | 20 | class Migration(migrations.Migration): 21 | 22 | dependencies = [ 23 | ('job_application', '0001_initial'), 24 | ] 25 | 26 | operations = [ 27 | migrations.RunPython(add_superuser), 28 | ] 29 | -------------------------------------------------------------------------------- /job_application/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImaginaryLandscape/multipage-form-demo/372253d8130c1cf39a0f5b93f5fc894a4ea7468c/job_application/migrations/__init__.py -------------------------------------------------------------------------------- /job_application/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | from multipage_form.models import MultipageModel 3 | 4 | 5 | class JobApplication(MultipageModel): 6 | # stage 1 fields 7 | first_name = models.CharField(max_length=20, blank=True) 8 | middle_name = models.CharField(max_length=20, blank=True) 9 | last_name = models.CharField(max_length=20, blank=True) 10 | # stage 2 fields 11 | education_level = models.CharField(max_length=20, blank=True) 12 | year_graduated = models.CharField(max_length=4, blank=True) 13 | # stage 3 fields 14 | prior_company = models.CharField(max_length=20, blank=True) 15 | prior_experience = models.TextField(blank=True) 16 | anything_more = models.BooleanField(default=False) 17 | # stage 3b fields 18 | personal_statement = models.TextField(blank=True) 19 | # stage 4 fields 20 | all_is_accurate = models.BooleanField(default=False) 21 | -------------------------------------------------------------------------------- /job_application/static/job_application/css/job_application.css: -------------------------------------------------------------------------------- 1 | #intro { 2 | margin: 10px 0px; 3 | } 4 | #form_name { 5 | font-weight: bold; 6 | margin-bottom: 15px; 7 | } 8 | .twocol { 9 | display: flex; 10 | width: 100%; 11 | } 12 | .left { 13 | flex-basis: 15%; 14 | padding: 10px; 15 | margin: 10px 10px 10px 0px; 16 | border: 1px solid black; 17 | background-color: lightgray; 18 | } 19 | ul.nav { 20 | margin: 20px 0px; 21 | padding: 0px; 22 | list-style: none; 23 | } 24 | ul.nav li { 25 | margin: 15px 0px; 26 | display: block; 27 | width: 100%; 28 | } 29 | ul.nav li a { 30 | text-decoration: none; 31 | } 32 | .right { 33 | flex-basis: 80%; 34 | padding: 10px; 35 | left: 18%; 36 | } 37 | .right p { 38 | margin-top: 0px; 39 | } 40 | .right a.button { 41 | font: bold 12px Arial; 42 | text-decoration: none; 43 | background-color: #EEEEEE; 44 | color: #333333; 45 | padding: 3px 6px; 46 | border: 1px solid black; 47 | border-radius: 3px; 48 | } 49 | -------------------------------------------------------------------------------- /job_application/templates/job_application/base.html: -------------------------------------------------------------------------------- 1 | {% load multipage_form_tags %} 2 | {% load static %} 3 | 4 | 5 | 6 | Job Application 7 | 8 | {{ form.media }} 9 | 10 | 11 | {% block content %} 12 | {% if messages %} 13 | 18 | {% endif %} 19 |
20 | {% block intro %} 21 |
22 |

Thank you for your interest in MegaCorp. Please supply the following information.

23 |
24 | {% endblock %} 25 |
26 | {% block leftnav %} 27 |
28 | COMPLETED SECTIONS 29 | {% get_history as links %} 30 | {% if links %} 31 | {% for link in links %} 32 | 35 | {% endfor %} 36 | {% endif %} 37 |
38 | {% endblock %} 39 |
40 | {% block preform %} 41 |
42 | {{ form.display_name }} 43 |
44 | {% endblock %} 45 |
46 | {% csrf_token %} 47 | {% block form %} 48 | {% endblock %} 49 |
50 | {% if previous %} 51 | Previous 52 | {% endif %} 53 | 54 |
55 |
56 |
57 |
58 | {% endblock %} 59 | 60 | 61 | -------------------------------------------------------------------------------- /job_application/templates/job_application/form_page.html: -------------------------------------------------------------------------------- 1 | {% extends "job_application/base.html" %} 2 | {% block form %} 3 | {{ form.as_p }} 4 | {% endblock %} 5 | -------------------------------------------------------------------------------- /job_application/templates/job_application/form_page_w_summary.html: -------------------------------------------------------------------------------- 1 | {% extends "job_application/base.html" %} 2 | {% load multipage_form_tags %} 3 | {% block intro %} 4 |
5 |

Please confirm that all information below is correct or make changes as necessary.

6 |
7 | {% endblock %} 8 | {% block leftnav %}{% endblock %} 9 | {% block preform %} 10 | {% get_form_summary %} 11 | {% endblock %} 12 | {% block form %} 13 | {{ form.as_p }} 14 | {% endblock %} 15 | -------------------------------------------------------------------------------- /job_application/templates/job_application/thank_you.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Thank you for your interest 5 | 6 | 7 | Congratulations. Your application has been added to the pile.
8 | Click here to start a new application. 9 | 10 | 11 | -------------------------------------------------------------------------------- /job_application/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | from .views import JobApplicationView, JobApplicationThankYouView 3 | 4 | app_name = "job_application" 5 | 6 | urlpatterns = [ 7 | path('', JobApplicationView.as_view(), name="job_application"), 8 | path('thank-you/', JobApplicationThankYouView.as_view(), name="thank_you"), 9 | ] 10 | -------------------------------------------------------------------------------- /job_application/views.py: -------------------------------------------------------------------------------- 1 | from django.urls import reverse_lazy 2 | from django.views.generic import TemplateView 3 | from multipage_form.views import MultipageFormView 4 | from .forms import JobApplicationForm 5 | 6 | 7 | class JobApplicationView(MultipageFormView): 8 | template_name = 'job_application/form_page.html' 9 | form_class = JobApplicationForm 10 | success_url = reverse_lazy("job_application:thank_you") 11 | 12 | 13 | class JobApplicationThankYouView(TemplateView): 14 | template_name = 'job_application/thank_you.html' 15 | -------------------------------------------------------------------------------- /manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | """Django's command-line utility for administrative tasks.""" 3 | import os 4 | import sys 5 | 6 | 7 | def main(): 8 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'multipage_form_demo.settings') 9 | try: 10 | from django.core.management import execute_from_command_line 11 | except ImportError as exc: 12 | raise ImportError( 13 | "Couldn't import Django. Are you sure it's installed and " 14 | "available on your PYTHONPATH environment variable? Did you " 15 | "forget to activate a virtual environment?" 16 | ) from exc 17 | execute_from_command_line(sys.argv) 18 | 19 | 20 | if __name__ == '__main__': 21 | main() 22 | -------------------------------------------------------------------------------- /multipage_form_demo/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImaginaryLandscape/multipage-form-demo/372253d8130c1cf39a0f5b93f5fc894a4ea7468c/multipage_form_demo/__init__.py -------------------------------------------------------------------------------- /multipage_form_demo/settings.py: -------------------------------------------------------------------------------- 1 | """ 2 | Django settings for multipage_form_demo project. 3 | 4 | Generated by 'django-admin startproject' using Django 3.2. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/3.2/topics/settings/ 8 | 9 | For the full list of settings and their values, see 10 | https://docs.djangoproject.com/en/3.2/ref/settings/ 11 | """ 12 | 13 | from pathlib import Path 14 | 15 | # Build paths inside the project like this: BASE_DIR / 'subdir'. 16 | BASE_DIR = Path(__file__).resolve().parent.parent 17 | 18 | 19 | # Quick-start development settings - unsuitable for production 20 | # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ 21 | 22 | # SECURITY WARNING: keep the secret key used in production secret! 23 | SECRET_KEY = 'django-insecure-fmfo@9w%6bl77y2p2#qgby+kzeg6r5n^szdeyf9duiy&hnxos$' 24 | 25 | # SECURITY WARNING: don't run with debug turned on in production! 26 | DEBUG = True 27 | 28 | ALLOWED_HOSTS = [] 29 | 30 | 31 | # Application definition 32 | 33 | INSTALLED_APPS = [ 34 | 'django.contrib.admin', 35 | 'django.contrib.auth', 36 | 'django.contrib.contenttypes', 37 | 'django.contrib.sessions', 38 | 'django.contrib.messages', 39 | 'django.contrib.staticfiles', 40 | 'job_application.apps.JobApplicationConfig', 41 | 'multipage_form' 42 | ] 43 | 44 | MIDDLEWARE = [ 45 | 'django.middleware.security.SecurityMiddleware', 46 | 'django.contrib.sessions.middleware.SessionMiddleware', 47 | 'django.middleware.common.CommonMiddleware', 48 | 'django.middleware.csrf.CsrfViewMiddleware', 49 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 50 | 'django.contrib.messages.middleware.MessageMiddleware', 51 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', 52 | ] 53 | 54 | ROOT_URLCONF = 'multipage_form_demo.urls' 55 | 56 | TEMPLATES = [ 57 | { 58 | 'BACKEND': 'django.template.backends.django.DjangoTemplates', 59 | 'DIRS': [], 60 | 'APP_DIRS': True, 61 | 'OPTIONS': { 62 | 'context_processors': [ 63 | 'django.template.context_processors.debug', 64 | 'django.template.context_processors.request', 65 | 'django.contrib.auth.context_processors.auth', 66 | 'django.contrib.messages.context_processors.messages', 67 | ], 68 | }, 69 | }, 70 | ] 71 | 72 | WSGI_APPLICATION = 'multipage_form_demo.wsgi.application' 73 | 74 | 75 | # Database 76 | # https://docs.djangoproject.com/en/3.2/ref/settings/#databases 77 | 78 | DATABASES = { 79 | 'default': { 80 | 'ENGINE': 'django.db.backends.sqlite3', 81 | 'NAME': BASE_DIR / 'db.sqlite3', 82 | } 83 | } 84 | 85 | 86 | # Password validation 87 | # https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators 88 | 89 | AUTH_PASSWORD_VALIDATORS = [ 90 | { 91 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', 92 | }, 93 | { 94 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', 95 | }, 96 | { 97 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', 98 | }, 99 | { 100 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', 101 | }, 102 | ] 103 | 104 | 105 | # Internationalization 106 | # https://docs.djangoproject.com/en/3.2/topics/i18n/ 107 | 108 | LANGUAGE_CODE = 'en-us' 109 | 110 | TIME_ZONE = 'UTC' 111 | 112 | USE_I18N = True 113 | 114 | USE_L10N = True 115 | 116 | USE_TZ = True 117 | 118 | 119 | # Static files (CSS, JavaScript, Images) 120 | # https://docs.djangoproject.com/en/3.2/howto/static-files/ 121 | 122 | STATIC_URL = '/static/' 123 | 124 | # Default primary key field type 125 | # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field 126 | 127 | DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' 128 | 129 | MULTIPAGE_FORM_SESSION_TIMEOUT = 3600 130 | -------------------------------------------------------------------------------- /multipage_form_demo/urls.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from django.urls import include, path, reverse_lazy 3 | from django.views.generic import RedirectView 4 | 5 | urlpatterns = [ 6 | path('', RedirectView.as_view(url=reverse_lazy('job_application:job_application'))), 7 | path('admin/', admin.site.urls), 8 | path('job_application/', include('job_application.urls', namespace='job_application')) 9 | ] 10 | -------------------------------------------------------------------------------- /multipage_form_demo/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for multipage_form_demo project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'multipage_form_demo.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- 1 | [[package]] 2 | name = "asgiref" 3 | version = "3.4.1" 4 | description = "ASGI specs, helper code, and adapters" 5 | category = "main" 6 | optional = false 7 | python-versions = ">=3.6" 8 | 9 | [package.dependencies] 10 | typing-extensions = {version = "*", markers = "python_version < \"3.8\""} 11 | 12 | [package.extras] 13 | tests = ["pytest", "pytest-asyncio", "mypy (>=0.800)"] 14 | 15 | [[package]] 16 | name = "django" 17 | version = "3.2.13" 18 | description = "A high-level Python Web framework that encourages rapid development and clean, pragmatic design." 19 | category = "main" 20 | optional = false 21 | python-versions = ">=3.6" 22 | 23 | [package.dependencies] 24 | asgiref = ">=3.3.2,<4" 25 | pytz = "*" 26 | sqlparse = ">=0.2.2" 27 | 28 | [package.extras] 29 | argon2 = ["argon2-cffi (>=19.1.0)"] 30 | bcrypt = ["bcrypt"] 31 | 32 | [[package]] 33 | name = "multipage-form" 34 | version = "1.0.0" 35 | description = "Django app supporting model forms with input fields that can be spread across multiple pages" 36 | category = "main" 37 | optional = false 38 | python-versions = "*" 39 | develop = false 40 | 41 | [package.source] 42 | type = "git" 43 | url = "https://github.com/ImaginaryLandscape/django-multipage-form.git" 44 | reference = "main" 45 | resolved_reference = "c602ebe16cfbe92d5e5198eeadfe31c8fd9d4618" 46 | 47 | [[package]] 48 | name = "pytz" 49 | version = "2022.1" 50 | description = "World timezone definitions, modern and historical" 51 | category = "main" 52 | optional = false 53 | python-versions = "*" 54 | 55 | [[package]] 56 | name = "sqlparse" 57 | version = "0.4.2" 58 | description = "A non-validating SQL parser." 59 | category = "main" 60 | optional = false 61 | python-versions = ">=3.5" 62 | 63 | [[package]] 64 | name = "typing-extensions" 65 | version = "4.1.1" 66 | description = "Backported and Experimental Type Hints for Python 3.6+" 67 | category = "main" 68 | optional = false 69 | python-versions = ">=3.6" 70 | 71 | [metadata] 72 | lock-version = "1.1" 73 | python-versions = ">=3.6" 74 | content-hash = "7cd7e81e8c457e36722cd0204ab43bf668f53647fcb477fc6eeed7e40c2d609f" 75 | 76 | [metadata.files] 77 | asgiref = [ 78 | {file = "asgiref-3.4.1-py3-none-any.whl", hash = "sha256:ffc141aa908e6f175673e7b1b3b7af4fdb0ecb738fc5c8b88f69f055c2415214"}, 79 | {file = "asgiref-3.4.1.tar.gz", hash = "sha256:4ef1ab46b484e3c706329cedeff284a5d40824200638503f5768edb6de7d58e9"}, 80 | ] 81 | django = [ 82 | {file = "Django-3.2.13-py3-none-any.whl", hash = "sha256:b896ca61edc079eb6bbaa15cf6071eb69d6aac08cce5211583cfb41515644fdf"}, 83 | {file = "Django-3.2.13.tar.gz", hash = "sha256:6d93497a0a9bf6ba0e0b1a29cccdc40efbfc76297255b1309b3a884a688ec4b6"}, 84 | ] 85 | multipage-form = [] 86 | pytz = [ 87 | {file = "pytz-2022.1-py2.py3-none-any.whl", hash = "sha256:e68985985296d9a66a881eb3193b0906246245294a881e7c8afe623866ac6a5c"}, 88 | {file = "pytz-2022.1.tar.gz", hash = "sha256:1e760e2fe6a8163bc0b3d9a19c4f84342afa0a2affebfaa84b01b978a02ecaa7"}, 89 | ] 90 | sqlparse = [ 91 | {file = "sqlparse-0.4.2-py3-none-any.whl", hash = "sha256:48719e356bb8b42991bdbb1e8b83223757b93789c00910a616a071910ca4a64d"}, 92 | {file = "sqlparse-0.4.2.tar.gz", hash = "sha256:0c00730c74263a94e5a9919ade150dfc3b19c574389985446148402998287dae"}, 93 | ] 94 | typing-extensions = [ 95 | {file = "typing_extensions-4.1.1-py3-none-any.whl", hash = "sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2"}, 96 | {file = "typing_extensions-4.1.1.tar.gz", hash = "sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42"}, 97 | ] 98 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.poetry] 2 | name = "multipage-form-demo" 3 | version = "1.0.0" 4 | description = "Demonstration of a ModelForm spaning multiple pages with django-multipage-form" 5 | homepage = "https://github.com/ImaginaryLandscape/multipage-form-demo" 6 | readme = "README.md" 7 | authors = ["Imagescape "] 8 | maintainers = ["Noel Taylor "] 9 | license = "MIT" 10 | classifiers=[ 11 | "Programming Language :: Python :: 3.4", 12 | "Programming Language :: Python :: 3.5", 13 | "Programming Language :: Python :: 3.6", 14 | "Programming Language :: Python :: 3.7", 15 | "Programming Language :: Python :: 3.8", 16 | "Programming Language :: Python :: 3.9", 17 | "Programming Language :: Python :: 3.10", 18 | "Framework :: Django", 19 | "Framework :: Django :: 3.2", 20 | "Framework :: Django :: 4.0", 21 | ] 22 | include = [ 23 | "LICENSE", 24 | "CHANGELOG.md", 25 | ] 26 | 27 | [tool.poetry.dependencies] 28 | python = ">=3.6" 29 | Django = "3.2.13" 30 | multipage-form = {git = "https://github.com/ImaginaryLandscape/django-multipage-form.git", branch = "main"} 31 | 32 | [build-system] 33 | requires = ["poetry-core>=1.0.0"] 34 | build-backend = "poetry.core.masonry.api" 35 | --------------------------------------------------------------------------------