archived_model.py 389 B

1234567891011121314
  1. from django.db import models
  2. from apps.loon_base_model import BaseModel
  3. from django.utils.translation import gettext_lazy as _
  4. from django.contrib.postgres.fields import JSONField
  5. class Archived(BaseModel):
  6. """archived record"""
  7. model_name = models.CharField("model name", max_length=100)
  8. data = JSONField(_('archived data'))
  9. class Meta:
  10. app_label = 'archived'