wangonya/auto-repair-saas

View on GitHub
auto_repair_saas/apps/staff/models.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
from django.db import models

from auto_repair_saas.apps.utils.models import BaseModel, ModelManager


class Staff(BaseModel):
    class Meta:
        ordering = ('name',)

    name = models.CharField(max_length=50, null=False, blank=False)
    email = models.EmailField(null=True, blank=True)

    def __str__(self):
        return self.name

    objects = ModelManager()