Commits

Anonymous committed 04ce743

Fixed bug in create map & changed default app id

Comments (0)

Files changed (2)

-application: ekkli-coop
+application: ekkli-maps
 version: 1
 runtime: python27
 api_version: 1
         is_initiator = True
         user_profile = user.profile.all()[0]
         group_profile = user_profile.group_profile
+        name = request.POST.get("name")
 
         if "template" in request.POST and request.POST["template"] != "-1":
             map_template = MapTemplate.objects.get(id=request.POST["template"])
 #            map_template = group_profile.default_template
             map_template = None
 
-        map = create_map(None, group_profile, map_template, user)
+        map = create_map(name, group_profile, map_template, user)
 #        return HttpResponseRedirect(reverse("view_map", map_id=map.id))
         return HttpResponseRedirect("/map/%d/" % map.id)