mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-28 16:25:44 +08:00
Added some needed string definitions for django admin and moved study groups to leaflet
This commit is contained in:
parent
54347f5e26
commit
8d9364274c
5 changed files with 15 additions and 2 deletions
|
@ -9,3 +9,6 @@ class Message(models.Model):
|
|||
study_group = models.ForeignKey(StudyGroup, on_delete=models.CASCADE)
|
||||
message_content = models.TextField(max_length=1024)
|
||||
timestamp = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
def __str__(self):
|
||||
return f'Message: User={self.user.full_name}, Study_group={self.study_group.name}, ID={self.id}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue