Commit e4ac6442 authored by Rafal's avatar Rafal

add permision to all

parent 5f850d3b
......@@ -23,7 +23,7 @@ class Discussion(models.Model):
def __str__(self):
return self.question
def add_message(self, user, text):
def add_message(self, user, text=""):
message = TextMessage.objects.create(user=user, text=text)
message.save()
self.message.add(message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment