Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Public contract registry
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Public contract registry
Commits
f5967b79
Commit
f5967b79
authored
2 years ago
by
Tomáš Valenta
Browse files
Options
Downloads
Patches
Plain Diff
improve terminology
parent
cd6b51c5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
contracts/migrations/0004_contracteerepresentative_contracteesignature_and_more.py
+119
-0
119 additions, 0 deletions
..._contracteerepresentative_contracteesignature_and_more.py
contracts/models.py
+16
-16
16 additions, 16 deletions
contracts/models.py
with
135 additions
and
16 deletions
contracts/migrations/0004_contracteerepresentative_contracteesignature_and_more.py
0 → 100644
+
119
−
0
View file @
f5967b79
# Generated by Django 4.1.4 on 2023-02-11 12:22
import
django.db.models.deletion
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
"
contracts
"
,
"
0003_contractexternalsignerrepresentative_contractintent_and_more
"
,
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
"
ContracteeRepresentative
"
,
fields
=
[
(
"
id
"
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
"
ID
"
,
),
),
(
"
name
"
,
models
.
CharField
(
max_length
=
256
,
verbose_name
=
"
Jméno
"
)),
(
"
role
"
,
models
.
CharField
(
max_length
=
256
,
verbose_name
=
"
Funkce
"
)),
],
options
=
{
"
verbose_name
"
:
"
Zástupce naší smluvní strany
"
,
"
verbose_name_plural
"
:
"
Zástupci naší smluvní strany
"
,
},
),
migrations
.
CreateModel
(
name
=
"
ContracteeSignature
"
,
fields
=
[
(
"
id
"
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
"
ID
"
,
),
),
(
"
date
"
,
models
.
DateField
(
verbose_name
=
"
Datum podpisu
"
)),
],
),
migrations
.
RenameModel
(
old_name
=
"
ContractExternalSigner
"
,
new_name
=
"
Signee
"
,
),
migrations
.
RenameModel
(
old_name
=
"
ContractExternalSignerRepresentative
"
,
new_name
=
"
SigneeRepresentative
"
,
),
migrations
.
RenameModel
(
old_name
=
"
ContractExternalSignature
"
,
new_name
=
"
SigneeSignature
"
,
),
migrations
.
RemoveField
(
model_name
=
"
contractlocalsignerrepresentative
"
,
name
=
"
signer
"
,
),
migrations
.
RenameField
(
model_name
=
"
contract
"
,
old_name
=
"
external_signature
"
,
new_name
=
"
signee_signature
"
,
),
migrations
.
RenameField
(
model_name
=
"
signeerepresentative
"
,
old_name
=
"
signer
"
,
new_name
=
"
signee
"
,
),
migrations
.
RenameField
(
model_name
=
"
signeesignature
"
,
old_name
=
"
signer
"
,
new_name
=
"
signee
"
,
),
migrations
.
RemoveField
(
model_name
=
"
contract
"
,
name
=
"
local_signature
"
,
),
migrations
.
RenameModel
(
old_name
=
"
ContractLocalSigner
"
,
new_name
=
"
Contractee
"
,
),
migrations
.
DeleteModel
(
name
=
"
ContractLocalSignature
"
,
),
migrations
.
DeleteModel
(
name
=
"
ContractLocalSignerRepresentative
"
,
),
migrations
.
AddField
(
model_name
=
"
contracteesignature
"
,
name
=
"
contractee
"
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
"
signatures
"
,
to
=
"
contracts.contractee
"
,
),
),
migrations
.
AddField
(
model_name
=
"
contracteerepresentative
"
,
name
=
"
contractee
"
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
"
representatives
"
,
to
=
"
contracts.contractee
"
,
),
),
migrations
.
AddField
(
model_name
=
"
contract
"
,
name
=
"
contractee_signatures
"
,
field
=
models
.
ManyToManyField
(
to
=
"
contracts.contracteesignature
"
),
),
]
This diff is collapsed.
Click to expand it.
contracts/models.py
+
16
−
16
View file @
f5967b79
...
...
@@ -6,7 +6,7 @@ from markdownx.models import MarkdownxField
from
users.models
import
User
class
ContractExternal
Signe
r
(
models
.
Model
):
class
Signe
e
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
256
,
verbose_name
=
"
Jméno
"
,
...
...
@@ -63,9 +63,9 @@ class ContractExternalSigner(models.Model):
verbose_name_plural
=
"
Druhé smluvní strany
"
class
ContractExternal
Signe
r
Representative
(
models
.
Model
):
signe
r
=
models
.
ForeignKey
(
ContractExternal
Signe
r
,
class
Signe
e
Representative
(
models
.
Model
):
signe
e
=
models
.
ForeignKey
(
Signe
e
,
on_delete
=
models
.
CASCADE
,
related_name
=
"
representatives
"
,
)
...
...
@@ -85,9 +85,9 @@ class ContractExternalSignerRepresentative(models.Model):
verbose_name_plural
=
"
Zástupci druhé smluvní strany
"
class
ContractExternal
Signature
(
models
.
Model
):
signe
r
=
models
.
ForeignKey
(
ContractExternal
Signe
r
,
class
Signee
Signature
(
models
.
Model
):
signe
e
=
models
.
ForeignKey
(
Signe
e
,
on_delete
=
models
.
CASCADE
,
related_name
=
"
signatures
"
,
)
...
...
@@ -97,7 +97,7 @@ class ContractExternalSignature(models.Model):
)
class
Contract
LocalSigner
(
models
.
Model
):
class
Contract
ee
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
256
,
default
=
settings
.
DEFAULT_LOCAL_SIGNER_NAME
,
...
...
@@ -153,9 +153,9 @@ class ContractLocalSigner(models.Model):
verbose_name_plural
=
"
Naše smlouvní strany
"
class
Contract
LocalSigner
Representative
(
models
.
Model
):
signer
=
models
.
ForeignKey
(
Contract
LocalSigner
,
class
Contract
ee
Representative
(
models
.
Model
):
contractee
=
models
.
ForeignKey
(
Contract
ee
,
on_delete
=
models
.
CASCADE
,
related_name
=
"
representatives
"
,
)
...
...
@@ -175,9 +175,9 @@ class ContractLocalSignerRepresentative(models.Model):
verbose_name_plural
=
"
Zástupci naší smluvní strany
"
class
Contract
Local
Signature
(
models
.
Model
):
signer
=
models
.
ForeignKey
(
Contract
LocalSigner
,
class
Contract
ee
Signature
(
models
.
Model
):
contractee
=
models
.
ForeignKey
(
Contract
ee
,
on_delete
=
models
.
CASCADE
,
related_name
=
"
signatures
"
,
)
...
...
@@ -245,9 +245,9 @@ class Contract(models.Model):
verbose_name
=
"
Obsahuje NDA
"
,
)
external
_signature
=
models
.
ManyToManyField
(
ContractExternal
Signature
)
signee
_signature
=
models
.
ManyToManyField
(
Signee
Signature
)
local
_signature
=
models
.
ManyToManyField
(
Contract
Local
Signature
)
contractee
_signature
s
=
models
.
ManyToManyField
(
Contract
ee
Signature
)
all_parties_sign_date
=
models
.
DateField
(
verbose_name
=
"
Datum podpisu všech stran
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment