Added celery and rabbitmq

This commit is contained in:
maciejrusek
2026-03-17 20:42:58 +01:00
parent 8b55be1b9c
commit e0ff3e1cf6
11 changed files with 59 additions and 27 deletions

View File

@@ -1,11 +1,11 @@
from django.db import models
from apps.shelves.models import Shelf
from apps.authors.models import Author
# from apps.authors.models import Author
from apps.user.models import User
class Book(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="Authors")
authors = models.ManyToManyField(Author, related_name="books")
# authors = models.ManyToManyField(Author, related_name="books")
name = models.CharField(max_length=255)
isbn = models.CharField(max_length=13)