Добавлено редактирование полей модели.

Для корректного использования необходимо установить пакет django-inplaceedit:

sudo pip install django-inplaceedit

После установки пакета его необходимо доавить в INSTALLED_APPS в settings.py:

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'inplaceeditform',
    'asuzr',
)
This commit is contained in:
2015-05-31 17:28:52 +05:00
parent ad76fd423b
commit 382ec6fa21
5 changed files with 13 additions and 7 deletions

View File

@@ -1,6 +1,9 @@
{% load inplace_edit %}
<html>
<head>
<title>Автоматическая система учета заказов студии мебели Рекорд</title>
<script src="{{ STATIC_URL }}admin/js/jquery.min.js" type="text/javascript"></script>
{% inplace_static %}
</head>
<body>
{% block menu %}