Commit 5b8a3978 authored by Jean-Baptiste's avatar Jean-Baptiste

update: remove useless

parent da3a1d23
Pipeline #4175 passed with stage
in 28 seconds
from django.contrib import admin
from .models import Conversation, Message
from django.db import models
from django.conf import settings
from django.db import models
from djangoldp.models import Model
class Conversation(Model):
title = models.TextField()
text = models.TextField(null=True)
......@@ -28,6 +29,7 @@ class Message(Model):
text = models.TextField()
conversation = models.ForeignKey("Conversation", on_delete=models.DO_NOTHING)
author_user = models.ForeignKey(settings.AUTH_USER_MODEL)
# response_to = models.ForeignKey(Member, on_delete=models.SET_NULL, related_name="response", blank=True, null=True)
class Meta:
......@@ -43,4 +45,4 @@ class Message(Model):
depth = 0
def __str__(self):
return '{}, le {}'.format(self.text, self.dateCreated)
\ No newline at end of file
return '{}, le {}'.format(self.text, self.dateCreated)
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