Skip to content
Snippets Groups Projects
Commit 0cce16f6 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Move addressfield data into its own app

parent f11b49fe
No related branches found
No related tags found
No related merge requests found
from django.db import models
# Create your models here.
...@@ -21,7 +21,7 @@ class KeepAttrsTextInput(KeepOwnAttrsWidget, forms.TextInput): ...@@ -21,7 +21,7 @@ class KeepAttrsTextInput(KeepOwnAttrsWidget, forms.TextInput):
class NestedMultiWidget(KeepOwnAttrsWidget, forms.MultiWidget): class NestedMultiWidget(KeepOwnAttrsWidget, forms.MultiWidget):
template_name = 'funds/widgets/nested_with_label.html' template_name = 'addressfield/widgets/nested_with_label.html'
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
widgets = [ widgets = [
......
...@@ -16,7 +16,7 @@ from opentech.apply.stream_forms.blocks import ( ...@@ -16,7 +16,7 @@ from opentech.apply.stream_forms.blocks import (
TextFieldBlock, TextFieldBlock,
) )
from opentech.apply.categories.blocks import CategoryQuestionBlock from opentech.apply.categories.blocks import CategoryQuestionBlock
from .widgets import AddressWidget from addressfield.widgets import AddressWidget
def find_duplicates(items): def find_duplicates(items):
......
...@@ -57,6 +57,7 @@ INSTALLED_APPS = [ ...@@ -57,6 +57,7 @@ INSTALLED_APPS = [
'tinymce', 'tinymce',
'wagtailcaptcha', 'wagtailcaptcha',
'django_tables2', 'django_tables2',
'addressfield',
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.auth', 'django.contrib.auth',
......
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