Example #1
0
class UuidMixin(models.Model):
    """
    Mixin to identify models by UUID.
    """
    class Meta:
        abstract = True

    uuid = UUIDField()
Example #2
0
class UuidMixin(models.Model):
    # There is circular dependency between logging and core applications.
    # Core models are loggable. So we cannot use UUID mixin here.

    class Meta:
        abstract = True

    uuid = UUIDField()