summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/src/INSTALL.t2t25
-rw-r--r--ishtar/materials/models.py3
2 files changed, 28 insertions, 0 deletions
diff --git a/docs/src/INSTALL.t2t b/docs/src/INSTALL.t2t
new file mode 100644
index 000000000..9cc6aa6d1
--- /dev/null
+++ b/docs/src/INSTALL.t2t
@@ -0,0 +1,25 @@
+Ishtar installation
+Étienne Loks
+Last update: %%date(%m-%d-%Y)
+
++ Base installation +
+
+++ Installation ++
+
++++ Prerequisites +++
+
+- [apache http://www.apache.org/] version 2.x with [mod_python http://www.modpython.org/] 3.x
+- [python http://www.python.org/] versions 2.4 or superior
+- [django http://www.djangoproject.com/] version 1.2
+- [postgres http://www.postgresql.org/] version 8.x
+- [gettext http://www.gnu.org/software/gettext/]
+- [psycopg2 http://freshmeat.net/projects/psycopg/]
+- [django-simple-history https://bitbucket.org/q/django-simple-history/src] version 1.0
+
+
+To install django-simple-history:
+```
+hg clone -r 1.0 http://bitbucket.org/q/django-simple-history
+cd django-simple-history
+python setup.py install
+```
diff --git a/ishtar/materials/models.py b/ishtar/materials/models.py
index 37bc62f16..3c5a2d30e 100644
--- a/ishtar/materials/models.py
+++ b/ishtar/materials/models.py
@@ -26,6 +26,8 @@ from django.utils.translation import ugettext_lazy as _
from django.contrib.gis.db import models
from django.contrib import admin
+from simple_history.models import HistoricalRecords
+
from ishtar import settings
@@ -87,6 +89,7 @@ class File(models.Model) :
avec accusé réception")
ar_signed_by = models.ForeignKey(Person, verbose_name=u"Signature de \
l'accusé de réception par")
+ history = HistoricalRecords()
def __unicode__(self):
return u"%d - %d" % (self.year, self.number)