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

Commits on Feb 11, 2015

  1. Add a setting / context variable for whether this MapIt uses postcodes

    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.
    mhl authored and dracos committed Feb 11, 2015
    Configuration menu
    Copy the full SHA
    14e9f89 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1e422a1 View commit details
    Browse the repository at this point in the history
  3. Move country specific template to country apps.

    This allows for a nicer default as well.
    dracos committed Feb 11, 2015
    Configuration menu
    Copy the full SHA
    a0cbfcc View commit details
    Browse the repository at this point in the history