liquid_feedback_frontend

view model/draft.lua @ 1202:30b3bf5db1bb

Fixed listening to non-local IPv4 interfaces
author bsw
date Sun Jul 12 20:46:57 2015 +0200 (2015-07-12)
parents 23c98752e697
children 24f4c23f76ff
line source
1 Draft = mondelefant.new_class()
2 Draft.table = 'draft'
4 -- Many drafts belonging to an initiative
5 Draft:add_reference{
6 mode = 'm1',
7 to = "Initiative",
8 this_key = 'initiative_id',
9 that_key = 'id',
10 ref = 'initiative',
11 }
13 -- Many drafts are authored by a member
14 Draft:add_reference{
15 mode = 'm1',
16 to = "Member",
17 this_key = 'author_id',
18 that_key = 'id',
19 ref = 'author',
20 }
22 function Draft.object_get:author_name()
23 return self.author and self.author.name or _"Unknown author"
24 end
26 model.has_rendered_content(Draft, RenderedDraft)

Impressum / About Us