Coverage for website/models/AuthorSocialMediaModel.py: 100%
8 statements
« prev ^ index » next coverage.py v7.5.0, created at 2025-09-13 15:29 -0300
« prev ^ index » next coverage.py v7.5.0, created at 2025-09-13 15:29 -0300
1from django.db import models
3from website.models import SOCIAL_MEDIA
6class SocialMedia(models.Model):
7 user_social_media = models.ForeignKey(
8 "Author", blank=False, null=False, unique=False, on_delete=models.CASCADE
9 )
10 social_media = models.IntegerField(choices=SOCIAL_MEDIA, blank=True, null=True)
11 social_media_profile = models.CharField(max_length=100, blank=True, null=True)
13 class Meta:
14 db_table = "Social_Media"