mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-26 11:37:33 +00:00
9 lines
359 B
Python
Executable File
9 lines
359 B
Python
Executable File
from django.db import models
|
|
from spa.models._basemodel import _BaseModel
|
|
from spa.models.userprofile import UserProfile
|
|
|
|
|
|
class ChatMessage(_BaseModel):
|
|
message = models.TextField('Message')
|
|
timestamp = models.DateTimeField('Timestamp', auto_now_add=True)
|
|
user = models.ForeignKey(UserProfile, related_name='chat_messages', blank=True, null=True) |