|
@@ -5,6 +5,7 @@ from django.db import models
|
|
|
from django.db.models import Q
|
|
|
from django.conf import settings
|
|
|
from django.utils import timezone
|
|
|
+from coin.offers.models import OfferSubscription
|
|
|
|
|
|
from .fields import MACAddressField
|
|
|
|
|
@@ -70,6 +71,8 @@ class Item(models.Model):
|
|
|
help_text='Cocher si le matériel est en production')
|
|
|
comment = models.TextField(verbose_name='commentaire', blank=True,
|
|
|
null=True)
|
|
|
+ offer_subscription = models.ForeignKey(OfferSubscription, verbose_name='Abonnement',
|
|
|
+ related_name='items', blank=True, null=True)
|
|
|
|
|
|
objects = ItemQuerySet().as_manager()
|
|
|
|