| Total Complexity | 1 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| 1 | from django.db import models |
||
| 5 | class Audit(models.Model): |
||
| 6 | created_at = models.DateTimeField(auto_now=True) |
||
| 7 | created_by = models.ForeignKey( |
||
| 8 | User, |
||
| 9 | blank=True, |
||
| 10 | null=True, |
||
| 11 | related_name='%(class)ss_creators') |
||
| 12 | updated_by = models.ForeignKey( |
||
| 13 | User, |
||
| 14 | blank=True, |
||
| 15 | null=True, |
||
| 16 | related_name='%(class)ss_updators') |
||
| 17 | |||
| 18 | class Meta: |
||
| 19 | abstract = True |
||
| 20 | |||
| 21 | |||
| 22 | class Person(Audit): |
||
| 23 | |||
| 24 | """ an actual singular human being """ |
||
| 25 | # model fields |
||
| 26 | name = models.CharField(blank=True, max_length=100) |
||
| 27 | email = models.EmailField() |
||
| 28 | img = models.ImageField( |
||
| 45 |