diff options
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"), | 
