# Path: django_sonic_screwdriver/models.py
# class BaseModel(models.Model):
#     created_at = models.DateTimeField(
#         verbose_name=_("Created at"),
#         auto_now_add=True,
#         blank=False,
#         null=False,
#         help_text=_("Model was created at this time."),
#     )
# 
#     updated_at = models.DateTimeField(
#         verbose_name=_("Updated at"),
#         auto_now=True,
#         blank=False,
#         null=False,
#         help_text=_("Model was updated at this time."),
#     )
# 
#     objects = BaseManager()
# 
#     class Meta:
#         abstract = True


from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django_sonic_screwdriver.models import BaseModel

    comment = models.TextField(
        verbose_name=_("Comment"),
        blank=False,
        null=True,
        help_text=_("The comment itself."),
    )

    object_id = models.CharField(
        max_length=36,
        verbose_name=_("Object ID"),
        blank=True,
        null=True,
        help_text=_("ID of the related object."),
    )

    content_object = GenericForeignKey(
        ct_field="content_type", fk_field="object_id", for_concrete_model=True
    )

    content_type = models.ForeignKey(
        ContentType,
        on_delete=models.CASCADE,
        verbose_name=_("Content type"),
        blank=False,
        null=True,
        help_text=_("Related content type."),
    )

    class Meta:

# Path: django_sonic_screwdriver/models.py
# class BaseModel(models.Model):
#     created_at = models.DateTimeField(
#         verbose_name=_("Created at"),
#         auto_now_add=True,
#         blank=False,
#         null=False,
#         help_text=_("Model was created at this time."),
#     )
# 
#     updated_at = models.DateTimeField(
#         verbose_name=_("Updated at"),
#         auto_now=True,
#         blank=False,
#         null=False,
#         help_text=_("Model was updated at this time."),
#     )
# 
#     objects = BaseManager()
# 
#     class Meta:
#         abstract = True


# Path: django_sonic_screwdriver/apps/admin_comments/models.py
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django_sonic_screwdriver.models import BaseModel


    comment = models.TextField(
        verbose_name=_("Comment"),
        blank=False,
        null=True,
        help_text=_("The comment itself."),
    )

    object_id = models.CharField(
        max_length=36,
        verbose_name=_("Object ID"),
        blank=True,
        null=True,
        help_text=_("ID of the related object."),
    )

    content_object = GenericForeignKey(
        ct_field="content_type", fk_field="object_id", for_concrete_model=True
    )

    content_type = models.ForeignKey(
        ContentType,
        on_delete=models.CASCADE,
        verbose_name=_("Content type"),
        blank=False,
        null=True,
        help_text=_("Related content type."),
    )

    class Meta:

        verbose_name = _("Comment")