add: contract create serializer, TODO: fix errors with owners create and test
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# Generated by Django 5.2.4 on 2025-08-05 06:17
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("companies", "0004_alter_companymodel_logo_and_more"),
|
||||
("contracts", "0001_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="companyfoldermodel",
|
||||
name="contracts",
|
||||
field=models.ManyToManyField(
|
||||
blank=True, null=True, related_name="folders", to="contracts.contractmodel", verbose_name="Contracts"
|
||||
),
|
||||
),
|
||||
]
|
||||
@@ -37,6 +37,8 @@ class CompanyFolderModel(UUIDPrimaryKeyBaseModel):
|
||||
ContractModel,
|
||||
verbose_name=_("Contracts"),
|
||||
related_name="folders",
|
||||
null=True,
|
||||
blank=True
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user