Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Move addressfield data into its own app
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Dembrey committed Feb 8, 2018
1 parent f11b49f commit 0cce16f
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 2 deletions.
Empty file added addressfield/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions addressfield/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class KeepAttrsTextInput(KeepOwnAttrsWidget, forms.TextInput):


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):
widgets = [
Expand Down
2 changes: 1 addition & 1 deletion opentech/apply/funds/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
TextFieldBlock,
)
from opentech.apply.categories.blocks import CategoryQuestionBlock
from .widgets import AddressWidget
from addressfield.widgets import AddressWidget


def find_duplicates(items):
Expand Down
1 change: 1 addition & 0 deletions opentech/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
'tinymce',
'wagtailcaptcha',
'django_tables2',
'addressfield',

'django.contrib.admin',
'django.contrib.auth',
Expand Down

0 comments on commit 0cce16f

Please sign in to comment.