|
|
@@ -13,9 +13,9 @@ from planner.utils import Term
|
|
|
@dataclass(repr=False)
|
|
|
class Item(TemplateMixin, SchemaMixin, DbMixin):
|
|
|
cache_keys = ('name', 'milestone_id', 'sprint_id')
|
|
|
- template_term = """{{ obj.name }} {{ Term.uuid(obj.short_uuid) }} ({{ obj.term_priority }}, {{ obj.term_length }})
|
|
|
- {% for comment in obj.comments %}
|
|
|
- {{- comment.as_term }}
|
|
|
+ template_term = """{{ obj.type_term }} {{ Term.uuid(obj.short_uuid) }} # {{ obj.name }} ({{ obj.term_priority }}, {{ obj.term_length }})
|
|
|
+ {%- for comment in obj.comments %}
|
|
|
+ {{ comment.as_term }}
|
|
|
{%- endfor %}"""
|
|
|
|
|
|
document: dict
|
|
|
@@ -144,16 +144,16 @@ class Item(TemplateMixin, SchemaMixin, DbMixin):
|
|
|
|
|
|
|
|
|
class Limitation(Item):
|
|
|
- ...
|
|
|
+ type_term = Term.important('Lim. ')
|
|
|
|
|
|
|
|
|
class Feature(Item):
|
|
|
- ...
|
|
|
+ type_term = Term.not_important('Feat.')
|
|
|
|
|
|
|
|
|
class Constraint(Item):
|
|
|
- ...
|
|
|
+ type_term = Term.not_important('Cons.')
|
|
|
|
|
|
|
|
|
class Unknown(Item):
|
|
|
- ...
|
|
|
+ type_term = Term.mildly_important('Unkn.')
|