liquid_feedback_frontend
view model/unit.lua @ 269:55c2806c7113
Removed unnecessary filter option in area list
| author | bsw | 
|---|---|
| date | Tue Feb 07 19:59:24 2012 +0100 (2012-02-07) | 
| parents | 6725c13b6ce0 | 
| children | b77e6a17ca77 | 
 line source
     1 Unit = mondelefant.new_class()
     2 Unit.table = 'unit'
     4 Unit:add_reference{
     5   mode          = '1m',
     6   to            = "Area",
     7   this_key      = 'id',
     8   that_key      = 'unit_id',
     9   ref           = 'areas',
    10   back_ref      = 'unit'
    11 }
    13 function Unit:get_flattened_tree()
    14   -- TODO implement
    16   return Unit:new_selector():exec()
    17 end
