projects
/
zzz-floof.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Super-simple comment display.
[zzz-floof.git]
/
floof
/
model
/
comments.py
1
from
elixir
import
*
2
3
class
Discussion
(
Entity
):
4
"""Represents a collection of comments attached to some other object."""
5
count
=
Field
(
Integer
)
6
comments
=
OneToMany
(
'Comment'
)
7
8
class
Comment
(
Entity
):
9
discussion
=
ManyToOne
(
'Discussion'
)
10
text
=
Field
(
Unicode
(
65536
))
11