Skip to content

Commit

Permalink
🗃️ [#63] added model Betrokkene and added foreignkeys relations
Browse files Browse the repository at this point in the history
  • Loading branch information
bart-maykin committed Oct 12, 2023
1 parent af6c345 commit 28b47db
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/openklant/components/klantinteracties/models/partijen.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from vng_api_common.descriptors import GegevensGroepType

from .constants import SoortPartij
from .klantcontacten import Betrokkene


class Partij(models.Model):
Expand All @@ -19,6 +20,14 @@ class Partij(models.Model):
"Unieke (technische) identificatiecode van de betrokkene bij klantcontact."
),
)
betrokkene = models.ForeignKey(
Betrokkene,
on_delete=models.CASCADE,
verbose_name=_("Betrokkene bij klantcontact"),
related_name="partijen",
help_text=_("'Betrokkene bij klantcontact' was 'Partij'"),
null=True,
)
nummer = models.PositiveIntegerField(
_("Nummer"),
help_text=_(
Expand Down

0 comments on commit 28b47db

Please sign in to comment.