summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-10-21 15:04:28 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-10-21 15:04:28 +0200
commit038b12ea13407d69fbbe8f0fae3067aa55f1f763 (patch)
treea8d881b59447269f2e92578cf5924759bad17704 /archaeological_operations/models.py
parentea73bf44c5d527f407c89b35b22b21abf2f32617 (diff)
downloadIshtar-038b12ea13407d69fbbe8f0fae3067aa55f1f763.tar.bz2
Ishtar-038b12ea13407d69fbbe8f0fae3067aa55f1f763.zip
Djangoization - Major refactoring (step 8)
* clean-up on request and storage args in methods * view creation now managed by South * clean some mess in session values by using MultiValueDict
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 60de936d2..42026eebe 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -222,15 +222,7 @@ post_save.connect(operation_post_save, sender=Operation)
class OperationByDepartment(models.Model):
'''
- Database view: don't forget to create it
-
- create view operation_department (id, department_id, operation_id) as
- select town."id", town."departement_id", operation_towns."operation_id"
- from ishtar_base_town town
- inner join ishtar_base_operation_towns operation_towns on
- operation_towns."town_id"=town."id" order by town."departement_id";
- CREATE RULE operation_department_delete
- AS ON DELETE TO operation_department DO INSTEAD();
+ Database view for dashboard
'''
operation = models.ForeignKey(Operation, verbose_name=_(u"Operation"))
department = models.ForeignKey(Department, verbose_name=_(u"Department"),