diff --git a/Makefile b/Makefile index 6607754..19ca237 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ t: clean $(VIRTUALENV)/bin/py.test @$(VIRTUALENV)/bin/py.test $(CURDIR)/example/db.sqlite3: $(VIRTUALENV) - $(VIRTUALENV)/bin/python example/manage.py syncdb --noinput + $(VIRTUALENV)/bin/python example/manage.py migrate --noinput .PHONY: run run: $(CURDIR)/example/db.sqlite3 diff --git a/django_markdown/views.py b/django_markdown/views.py index dbf352f..ef29860 100644 --- a/django_markdown/views.py +++ b/django_markdown/views.py @@ -19,6 +19,6 @@ def preview(request): return render( request, settings.MARKDOWN_PREVIEW_TEMPLATE, dict( - content=request.REQUEST.get('data', 'No content posted'), + content=request.POST.get('data', 'No content posted'), css=settings.MARKDOWN_STYLE ))