This repository has been archived on 2025-11-04. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
csmb-housewars/housewars/models/Facilitator.py

13 lines
373 B
Python

from django.db import models
from . import Activity
class Facilitator(models.Model):
first_name = models.CharField(max_length=100)
last_name = models.CharField(max_length=100)
activity = models.ForeignKey(
Activity, on_delete=models.CASCADE)
def save(self, *args, **kwargs):
self.full_clean()
return super().save(*args, **kwargs)