Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add South Africa as a core country supported by MapIt #155

Merged
merged 3 commits into from
Feb 11, 2015
Merged

Conversation

mhl
Copy link
Contributor

@mhl mhl commented Jan 6, 2015

There's some interest in an independent MapIt being set up for South Africa,
rather than just the private one mounted in the People's Assembly site.

This pull request adds support for South Africa as a core country, in the same
way as Norway, the UK or Global.

For the moment, there's an instance you can try out here:

@dracos
Copy link
Member

dracos commented Jan 9, 2015

Some minor comments, otherwise ⛳

mhl and others added 3 commits February 11, 2015 16:57
We're shortly going to add another country that we don't currently have
postcode data for, and currently the test for whether that's the case
is just "country == 'Global'" in the templates - that can't be easily
extended because of the limitations on condidations in Django templates
and it would also be bad to have to repeat that logic everywhere.

Instead, this commit adds a settings variable POSTCODES_AVAILABLE and
it's also added to the country context processor so that it's available
in templates as postcodes_available.
This allows for a nicer default as well.
@dracos dracos merged commit a0cbfcc into master Feb 11, 2015
@dracos dracos deleted the south-africa branch December 22, 2015 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants