Add Subscription to setup

This commit is contained in:
Skia 2016-02-01 09:55:23 +01:00
parent bc7ab19e86
commit abb8dc0c5e

View File

@ -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()