blob: b0f6fe4db3618b01f48284c80a58c97aae164d3e (
plain)
1
2
3
4
5
6
7
8
9
|
from django.db import models
from django.contrib.auth.models import User
from workshop_app.models import Profile
class Team(models.Model):
members = models.ManyToManyField(Profile)
creator = models.OneToOneField(User, on_delete=models.CASCADE)
created_date = models.DateTimeField(auto_now=True)
|