diff options
| 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 | 
| commit | f31f0f269a68b2dfc5c834ce420bb5a02a3ecd0c (patch) | |
| tree | a8d881b59447269f2e92578cf5924759bad17704 /archaeological_operations/models.py | |
| parent | 48eb91979705f9999b724c8e2f960fd7931775c1 (diff) | |
| download | Ishtar-f31f0f269a68b2dfc5c834ce420bb5a02a3ecd0c.tar.bz2 Ishtar-f31f0f269a68b2dfc5c834ce420bb5a02a3ecd0c.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.py | 10 | 
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"),  | 
