Skip to content
Snippets Groups Projects
Unverified Commit 9bcc9b54 authored by Dan Braghis's avatar Dan Braghis Committed by GitHub
Browse files

Merge pull request #44 from OpenTechFund/feature/28-allow-custom-form-templates

Enable overwritting of django template forms and update apps to not clash
parents 0afc8abd dcd2b7ca
No related branches found
No related tags found
No related merge requests found
default_app_config = 'opentech.public.forms.apps.FormsConfig'
from django.apps import AppConfig
class FormsConfig(AppConfig):
name = 'opentech.public.forms'
label = 'public_forms'
......@@ -59,6 +59,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='formfield',
name='page',
field=modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='form_fields', to='forms.FormPage'),
field=modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='form_fields', to='public_forms.FormPage'),
),
]
......@@ -10,7 +10,7 @@ class Migration(migrations.Migration):
dependencies = [
('images', '0001_initial'),
('forms', '0001_initial'),
('public_forms', '0001_initial'),
]
operations = [
......
......@@ -60,6 +60,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sitemaps',
'django.forms',
]
MIDDLEWARE = [
......@@ -98,6 +99,8 @@ TEMPLATES = [
},
]
FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'
WSGI_APPLICATION = 'opentech.wsgi.application'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment