Untitled

Anonymous
django
04/11/2021 12:24 AM
676 B
19
Indexable
class Notifications(models.model):
    time_created = models.DateTimeField(default=timezone.now)
    n_type = models.CharField(choices=CHOICES)
    video = models.ForeignKey(to=Video, on_delete=models.CASCADE, null=True, blank=True, related_name="related_video")
    comment = models.ForeignKey(to=Video, on_delete=models.CASCADE, null=True, blank=True, related_name="related_comment")
    sender = models.ForeignKey(to=Viber, on_delete=models.CASCADE, null=True, blank=True, related_name="related_sender")
Editor is loading...