Add IntelliJ IDEA project configuration files
This commit adds IntelliJ IDEA-specific configuration files for the project, including module setup, version control integration, inspection profiles, and workspace settings. These files facilitate development environment configuration for contributors using IntelliJ IDEA.
This commit is contained in:
+11
-6
@@ -3,7 +3,7 @@ from django.db import models
|
||||
# Create your models here.
|
||||
class NomenclatureBaseModel(models.Model):
|
||||
name = models.CharField(max_length=100, unique=True)
|
||||
short_name = models.CharField(max_length=5, unique=True)
|
||||
short_name = models.CharField(max_length=5, null=True, blank=True)
|
||||
description = models.TextField(blank=True, null=True)
|
||||
|
||||
class Meta:
|
||||
@@ -13,14 +13,16 @@ class NomenclatureBaseModel(models.Model):
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
class PayerModel(NomenclatureBaseModel):
|
||||
|
||||
class CompanyModel(NomenclatureBaseModel):
|
||||
...
|
||||
|
||||
|
||||
class LinesModel(NomenclatureBaseModel):
|
||||
payer = models.ForeignKey(
|
||||
PayerModel,
|
||||
company = models.ForeignKey(
|
||||
'common.CompanyModel',
|
||||
on_delete=models.CASCADE,
|
||||
related_name='line_payers'
|
||||
related_name='line_company'
|
||||
)
|
||||
|
||||
class OperationModel(NomenclatureBaseModel):
|
||||
@@ -34,8 +36,11 @@ class ContainerTypeModel(models.Model):
|
||||
length = models.IntegerField()
|
||||
height = models.BooleanField()
|
||||
container_type = models.ForeignKey(
|
||||
ContainerKindModel,
|
||||
'common.ContainerKindModel',
|
||||
on_delete=models.CASCADE,
|
||||
related_name='container_type_container_kinds'
|
||||
)
|
||||
deleted = models.BooleanField(default=False)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
Reference in New Issue
Block a user