from django.db import models
from author.models import Author


class NewAdmirer(models.Model):
    admirer = models.ForeignKey(Author, on_delete=models.CASCADE, related_name="new_admirer")
    admiring = models.ForeignKey(Author, on_delete=models.CASCADE, related_name="new_admiring")
    viewed = models.BooleanField(default=False)

    def __str__(self):
        return f"{self.admiring} is admiring {self.admirer}"
    

1e52eaffa3e4db7ae67e9acf4aa617a72f0ed365
<mask token>


class NewAdmirer(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class NewAdmirer(models.Model):
    <mask token>
    <mask token>
    <mask token>

    def __str__(self):
        return f'{self.admiring} is admiring {self.admirer}'

<mask token>


class NewAdmirer(models.Model):
    admirer = models.ForeignKey(Author, on_delete=models.CASCADE,
        related_name='new_admirer')
    admiring = models.ForeignKey(Author, on_delete=models.CASCADE,
        related_name='new_admiring')
    viewed = models.BooleanField(default=False)

    def __str__(self):
        return f'{self.admiring} is admiring {self.admirer}'

from django.db import models
from author.models import Author


class NewAdmirer(models.Model):
    admirer = models.ForeignKey(Author, on_delete=models.CASCADE,
        related_name='new_admirer')
    admiring = models.ForeignKey(Author, on_delete=models.CASCADE,
        related_name='new_admiring')
    viewed = models.BooleanField(default=False)

    def __str__(self):
        return f'{self.admiring} is admiring {self.admirer}'

from django.db import models
from author.models import Author


class NewAdmirer(models.Model):
    admirer = models.ForeignKey(Author, on_delete=models.CASCADE, related_name="new_admirer")
    admiring = models.ForeignKey(Author, on_delete=models.CASCADE, related_name="new_admiring")
    viewed = models.BooleanField(default=False)

    def __str__(self):
        return f"{self.admiring} is admiring {self.admirer}"
    
