def _create_admin_unit(form):
    admin_unit = AdministrativeUnit()
    admin_unit.name = form.cleaned_data['name']
    admin_unit.country = form.cleaned_data['country']
    admin_unit.region_type = form.cleaned_data['region_type']
    admin.region_statistics = form.cleaned_data['region_statistics']
    admin_unit.save()
Ejemplo n.º 2
0
def _create_admin_unit(form):
    admin_unit = AdministrativeUnit()
    admin_unit.name = form.cleaned_data['name']
    admin_unit.country = form.cleaned_data['country']
    admin_unit.region_type = form.cleaned_data['region_type']
    admin_unit.health = form.cleaned_data['health']
    admin_unit.economy = form.cleaned_data['economy']
    admin_unit.environment = form.cleaned_data['environment']
    admin_unit.governance = form.cleaned_data['governance']
    admin_unit.infrastructure = form.cleaned_data['infrastructure']
    admin_unit.social_sector = form.cleaned_data['social_sector']    
    admin_unit.agriculture = form.cleaned_data['agriculture']
    admin_unit.dev_partners = form.cleaned_data['dev_partners']
    admin_unit.recent_reports = form.cleaned_data['recent_reports']
    admin_unit.resources = form.cleaned_data['resources']
    admin_unit.save()