Files
vontor-cz/backend/social/blog/models.py
David Bruno Vontor 2592a69790 Introduce notifications app and integrate emails
Add a new notifications app (models, serializers, views, admin, tasks, consumers, routing, urls, tests) with Notification.notify for in-app websocket pushes and optional email delivery. Centralize email sending in notifications.tasks.send_email_with_context and re-export it from account.tasks for compatibility. Update account and commerce and advertisement tasks to use Notification.notify/_notify_order and the new email helper; adjust order/notification tasks to consolidate logic. Wire notifications into ASGI routing, settings and URL conf. Misc: handle OSError when importing weasyprint, add tmp/ to .gitignore, add local .claude PowerShell checks, add social.blog skeleton, and remove legacy ews-component test files.
2026-06-09 16:18:41 +02:00

16 lines
393 B
Python

from django.db import models
# Create your models here.
class Blog(models.Model):
title = models.CharField(max_length=255)
content = models.JsonField()
authors = models.ManyToManyField('Author', related_name='blogs')
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
def __str__(self):
return self.title