before change Ticket Desc to TextArea
This commit is contained in:
1 parent
f7dbd02a6c
commit
ef18434b86
55 files changed
+1026
-59
No files matched your search
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.1 on 2024-02-10 09:59
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workspace', '0013_alter_workspace_cuser_owner'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='city',
|
||||
name='pv_id',
|
||||
field=models.PositiveSmallIntegerField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.1 on 2024-02-10 11:06
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workspace', '0014_city_pv_id'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='city',
|
||||
name='name',
|
||||
field=models.CharField(blank=True, max_length=30, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 4.2.1 on 2024-02-18 09:44
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('workspace', '0015_alter_city_name'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='workspace',
|
||||
name='cuser_owner',
|
||||
),
|
||||
]
|
||||
@@ -11,7 +11,7 @@ class Workspace(BaseModel):
|
||||
#cuser_role_owner = models.OneToOneField(CuserRoleModel, on_delete=models.CASCADE,
|
||||
# related_name='workspace', null=True, blank=True)
|
||||
|
||||
cuser_owner = models.ForeignKey(CUser, on_delete=models.SET_NULL, null=True, blank=True, default=None)
|
||||
#cuser_owner = models.ForeignKey(CUser, on_delete=models.SET_NULL, null=True, blank=True, default=None)
|
||||
name = models.CharField(max_length=15, null=False, blank=False)
|
||||
username = models.CharField(max_length=30, null=False, blank=False, unique=True)
|
||||
expire = models.DateTimeField(null=True, blank=True)
|
||||
@@ -27,9 +27,10 @@ class Workspace(BaseModel):
|
||||
|
||||
|
||||
class City(BaseModel):
|
||||
name = models.CharField(max_length=15, null=True, blank=True)
|
||||
name = models.CharField(max_length=30, null=True, blank=True)
|
||||
is_ostan = models.BooleanField(default=False, null=False, blank=False)
|
||||
ostan = models.ForeignKey('self', models.CASCADE, null=True, blank=True)
|
||||
pv_id = models.PositiveSmallIntegerField(null=True, blank=True)
|
||||
|
||||
def __str__(self):
|
||||
return str(self.name)
|
||||
|
||||
Reference in new issue
Block a user