From abb8dc0c5e47496996fe166f57efdcaf8c7fd838 Mon Sep 17 00:00:00 2001 From: Skia Date: Mon, 1 Feb 2016 09:55:23 +0100 Subject: [PATCH] Add Subscription to setup --- core/management/commands/setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/management/commands/setup.py b/core/management/commands/setup.py index 190b2318..f15ab16e 100755 --- a/core/management/commands/setup.py +++ b/core/management/commands/setup.py @@ -7,6 +7,7 @@ from django.conf import settings from core.models import Group, User, Page, PageRev from accounting.models import Customer, GeneralJournal, ProductType, Product from club.models import Club +from subscription.models import Subscription, Subscriber class Command(BaseCommand): help = "Set up a new instance of the Sith AE" @@ -62,3 +63,7 @@ Cette page vise à documenter la syntaxe *Markdown* utilisée sur le site. special_selling_price="1.6").save() GeneralJournal(start_date="2015-06-12", name="A15").save() + # Subscription + Subscription(member=Subscriber.objects.filter(pk=s.pk).first(), subscription_type=list(settings.AE_SUBSCRIPTIONS.keys())[0], + payment_method=settings.AE_PAYMENT_METHOD[0]).save() +