from django.db import models
from django.contrib.auth.models import User
class CommenInfo(models.Model):
archived = models.BooleanField(default=False)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
def delete(self):
self.archived = True
super().save()
class Meta:
abstract = True
class Team(CommenInfo):
pass
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/73471eba-70a9-416d-8877-1d3c94555fe4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.