From 80d11bbaab15636a1e8892012064319458dd0b14 Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 6 Jun 2018 14:42:06 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E5=88=A0=E9=99=A4user=20group?= =?UTF-8?q?=E7=BB=A7=E6=89=BF=E7=9A=84=E6=8A=BD=E8=B1=A1=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/users/models/group.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/users/models/group.py b/apps/users/models/group.py index 48ed2e949..9196156f7 100644 --- a/apps/users/models/group.py +++ b/apps/users/models/group.py @@ -4,12 +4,10 @@ import uuid from django.db import models, IntegrityError from django.utils.translation import ugettext_lazy as _ -from common.mixins import NoDeleteModelMixin - __all__ = ['UserGroup'] -class UserGroup(NoDeleteModelMixin): +class UserGroup(models.Model): id = models.UUIDField(default=uuid.uuid4, primary_key=True) name = models.CharField(max_length=128, unique=True, verbose_name=_('Name')) comment = models.TextField(blank=True, verbose_name=_('Comment'))