diff --git a/app/stores/api.py b/app/stores/api.py
new file mode 100644
index 0000000..f05bc85
--- /dev/null
+++ b/app/stores/api.py
@@ -0,0 +1,18 @@
+from django.forms.models import model_to_dict
+from tastypie.resources import ModelResource, ALL, ALL_WITH_RELATIONS
+from stores.models import County, Country
+
+
+class CountryResource(ModelResource):
+
+ def dehydrate(self, bundle):
+ counties = County.objects.filter(country=bundle.data['id'])
+ bundle.data['counties'] = [model_to_dict(c) for c in counties]
+ return bundle
+
+ class Meta:
+ queryset = Country.objects.all()
+ resource_name = 'country'
+ filtering = {
+ 'id': ('exact',)
+ }
diff --git a/app/stores/templates/stores/wizard/store_wizard.html b/app/stores/templates/stores/wizard/store_wizard.html
index 0748a05..e8129cf 100644
--- a/app/stores/templates/stores/wizard/store_wizard.html
+++ b/app/stores/templates/stores/wizard/store_wizard.html
@@ -9,6 +9,25 @@
{% block scripts %}
+
{% endblock %}
{% block content %}
diff --git a/app/vapemap/conf/base.py b/app/vapemap/conf/base.py
index 9a0048e..88bad70 100644
--- a/app/vapemap/conf/base.py
+++ b/app/vapemap/conf/base.py
@@ -78,6 +78,7 @@ INSTALLED_APPS = [
'bootstrapform',
'registration',
'haystack',
+ 'tastypie',
'moderation',
'stores',
]
diff --git a/app/vapemap/templates/base.html b/app/vapemap/templates/base.html
index bf4e465..4675734 100644
--- a/app/vapemap/templates/base.html
+++ b/app/vapemap/templates/base.html
@@ -87,7 +87,6 @@
{% endblock %}
{% switch uservoice_tab %}
{% endswitch %}