mirror of
https://github.com/ae-utbm/sith.git
synced 2025-10-09 08:14:39 +00:00
add condition for EBOUTIC counter type in subscription creation
This commit is contained in:
@@ -881,6 +881,7 @@ class Selling(models.Model):
|
|||||||
if (
|
if (
|
||||||
self.product
|
self.product
|
||||||
and self.product.id == settings.SITH_PRODUCT_SUBSCRIPTION_ONE_SEMESTER
|
and self.product.id == settings.SITH_PRODUCT_SUBSCRIPTION_ONE_SEMESTER
|
||||||
|
and self.counter.type == "EBOUTIC"
|
||||||
):
|
):
|
||||||
sub = Subscription(
|
sub = Subscription(
|
||||||
member=user,
|
member=user,
|
||||||
@@ -904,6 +905,7 @@ class Selling(models.Model):
|
|||||||
elif (
|
elif (
|
||||||
self.product
|
self.product
|
||||||
and self.product.id == settings.SITH_PRODUCT_SUBSCRIPTION_TWO_SEMESTERS
|
and self.product.id == settings.SITH_PRODUCT_SUBSCRIPTION_TWO_SEMESTERS
|
||||||
|
and self.counter.type == "EBOUTIC"
|
||||||
):
|
):
|
||||||
sub = Subscription(
|
sub = Subscription(
|
||||||
member=user,
|
member=user,
|
||||||
|
Reference in New Issue
Block a user