billing address to user
This commit is contained in:
@@ -19,6 +19,8 @@ class RowerInline(admin.StackedInline):
|
||||
filter_horizontal = ('team','friends')
|
||||
|
||||
fieldsets = (
|
||||
('Billing Details',
|
||||
{'fields':('street_address','city','postal_code','country',)}),
|
||||
('Rower Plan',
|
||||
{'fields':('rowerplan','paymenttype','planexpires','teamplanexpires','clubsize','protrialexpires','plantrialexpires',)}),
|
||||
('Rower Settings',
|
||||
|
||||
@@ -17,6 +17,7 @@ import os
|
||||
import twitter
|
||||
import re
|
||||
import pytz
|
||||
from django_countries.fields import CountryField
|
||||
|
||||
from scipy.interpolate import splprep, splev, CubicSpline
|
||||
import numpy as np
|
||||
@@ -571,6 +572,13 @@ class Rower(models.Model):
|
||||
('Yoga','Yoga'),
|
||||
)
|
||||
user = models.OneToOneField(User)
|
||||
|
||||
#billing details
|
||||
country = CountryField(default=None, null=True, blank=True)
|
||||
street_address = models.CharField(default='',blank=True,null=True,max_length=200)
|
||||
city = models.CharField(default='',blank=True,null=True,max_length=200)
|
||||
postal_code = models.CharField(default='',blank=True,null=True,max_length=200)
|
||||
|
||||
gdproptin = models.BooleanField(default=False)
|
||||
gdproptindate = models.DateTimeField(blank=True,null=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user