|
|
|
@ -4,6 +4,8 @@ import simplejson as json |
|
|
|
from django.shortcuts import render, get_object_or_404, redirect |
|
|
|
from django.shortcuts import render, get_object_or_404, redirect |
|
|
|
from django.http import HttpResponseBadRequest, HttpResponse |
|
|
|
from django.http import HttpResponseBadRequest, HttpResponse |
|
|
|
from django.core import serializers |
|
|
|
from django.core import serializers |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# use django.apps.apps.get_model since Django 1.9 |
|
|
|
from django.db.models.loading import get_model |
|
|
|
from django.db.models.loading import get_model |
|
|
|
from django.views.decorators.csrf import csrf_protect |
|
|
|
from django.views.decorators.csrf import csrf_protect |
|
|
|
|
|
|
|
|
|
|
|
|