Commits

Greg Newman committed 9c01805

fixing redirects in example and fixing m2m saves

  • Participants
  • Parent commits cd3e490

Comments (0)

Files changed (2)

File example/settings.py

     [os.path.join(PROJECT_DIR, "templates")]
 )
 
+TEMPLATE_CONTEXT_PROCESSORS = (
+    "django.core.context_processors.auth",
+    "django.core.context_processors.debug",
+    "django.core.context_processors.i18n",
+    "django.core.context_processors.media",
+    "django.core.context_processors.request",
+)
+
 INSTALLED_APPS = (
     'django.contrib.auth',
     'django.contrib.contenttypes',

File loupe/views.py

             project = form.save(commit=False)
             project.user = request.user
             project.save()
+            form.save_m2m()
             request.user.message_set.create(message=_("Successfully created project '%s'") % project.title)
                 
             return HttpResponseRedirect(reverse('project_detail', args=(project.slug,)))