Commit ddeee25d authored by Bruno Martin's avatar Bruno Martin
Browse files

fix classroom property chat_url

parent 8b937351
......@@ -65,7 +65,7 @@ class Classroom(models.Model):
@property
def chat_url(self):
return '{}/channel/{}'.format(settings.ROCKET_CHAT.address, group.chatroom_set.first().room)
return '{}channel/{}'.format(settings.ROCKET_CHAT['address'], self.group.chatroom.name)
class Event(models.Model):
......
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