You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class UUIDMixin(models.Model):
uuid = UUIDField(auto=True)
class Meta:
abstract = True
And it could be used like this:
from uuidfield.models import UUIDMixin
class MyClass(UUIDMixin, models.Model):
title = models.CharField(max_length=200)
def __unicode__(self):
return self.title
The text was updated successfully, but these errors were encountered:
Something like this:
And it could be used like this:
The text was updated successfully, but these errors were encountered: