mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-21 01:48:21 +02:00
Billing -> Invoice
This commit is contained in:
@ -5,10 +5,10 @@ from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
class Billing(models.Model):
|
||||
class Invoice(models.Model):
|
||||
id = models.PositiveIntegerField(
|
||||
primary_key=True,
|
||||
verbose_name=_("Billing identifier"),
|
||||
verbose_name=_("Invoice identifier"),
|
||||
)
|
||||
|
||||
bde = models.CharField(
|
||||
@ -104,8 +104,8 @@ class Billing(models.Model):
|
||||
|
||||
|
||||
class Product(models.Model):
|
||||
billing = models.ForeignKey(
|
||||
Billing,
|
||||
invoice = models.ForeignKey(
|
||||
Invoice,
|
||||
on_delete=models.PROTECT,
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user