Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
def source(self):
return self.backend.sources.get_by_id(self.data.source_id)
- # State
-
- def set_state(self, state):
- self._set_attribute("state", state)
-
- state = property(lambda s: s.data.state, set_state)
-
# Author
@lazy_property
subject text NOT NULL,
body text NOT NULL,
date timestamp without time zone NOT NULL,
- state text DEFAULT 'pending'::text NOT NULL,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
deleted_at timestamp without time zone,
build_group_id integer,