Added some logic
This commit is contained in:
6
backend/apps/authors/models.py
Normal file
6
backend/apps/authors/models.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.db import models
|
||||
from apps.user.models import User
|
||||
|
||||
class Author(models.Model):
|
||||
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="Authors")
|
||||
name = models.CharField(max_length=255)
|
||||
Reference in New Issue
Block a user