fga-eps-mds/2020.2-Hortum

View on GitHub
src/hortum/customer/models.py

Summary

Maintainability
A
0 mins
Test Coverage
from django.db import models
from hortum.productor.models import Productor
from hortum.announcement.models import Announcement
from hortum.users.models import User

class Customer(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE)
    idAnunFav = models.ManyToManyField(Announcement)
    idProdFav = models.ManyToManyField(Productor)