我正在开发一个用户可以添加事件的项目,而另一个用户可以自己注册该事件。每当他们参加活动时,我都想将用户名添加到列表中。
我的模型:
class Event(models.Model):
Topic = CharField
participants = # want a field here
# which can store
# multiple items
# that is the name
# of the user. So when
# the user
# registers a
# method appends
# the user name in this list.