Send messages
This commit is contained in:
parent
b9d933e3b1
commit
dd554ca6ca
6 changed files with 106 additions and 57 deletions
|
@ -64,14 +64,11 @@ def execute_after_save(sender, instance, created, *args, **kwargs):
|
|||
|
||||
class Message(models.Model):
|
||||
''' any kind of user post, incl. reviews, replies, and status updates '''
|
||||
author = models.ForeignKey('User', on_delete=models.PROTECT)
|
||||
user = models.ForeignKey('User', on_delete=models.PROTECT)
|
||||
content = JSONField(max_length=5000)
|
||||
created_date = models.DateTimeField(auto_now_add=True)
|
||||
updated_date = models.DateTimeField(auto_now=True)
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
||||
|
||||
class Shelf(models.Model):
|
||||
activitypub_id = models.CharField(max_length=255)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue