Commit abb8dc0c authored by Skia's avatar Skia

Add Subscription to setup

parent bc7ab19e
...@@ -7,6 +7,7 @@ from django.conf import settings ...@@ -7,6 +7,7 @@ from django.conf import settings
from core.models import Group, User, Page, PageRev from core.models import Group, User, Page, PageRev
from accounting.models import Customer, GeneralJournal, ProductType, Product from accounting.models import Customer, GeneralJournal, ProductType, Product
from club.models import Club from club.models import Club
from subscription.models import Subscription, Subscriber
class Command(BaseCommand): class Command(BaseCommand):
help = "Set up a new instance of the Sith AE" 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. ...@@ -62,3 +63,7 @@ Cette page vise à documenter la syntaxe *Markdown* utilisée sur le site.
special_selling_price="1.6").save() special_selling_price="1.6").save()
GeneralJournal(start_date="2015-06-12", name="A15").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()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment