.
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
# Generated by Django 3.2.10 on 2022-03-30 21:51
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('generic', '0025_alter_ciduser_group'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddIndex(
|
||||||
|
model_name='ciduser',
|
||||||
|
index=models.Index(fields=['cid'], name='generic_cid_cid_291418_idx'),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -301,6 +301,11 @@ class CidUser(models.Model):
|
|||||||
|
|
||||||
group = models.ForeignKey("CidUserGroup", on_delete=models.SET_NULL, null=True, blank=True)
|
group = models.ForeignKey("CidUserGroup", on_delete=models.SET_NULL, null=True, blank=True)
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
indexes = [
|
||||||
|
models.Index(fields=["cid"])
|
||||||
|
]
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
return str(self.cid)
|
return str(self.cid)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user