|
@@ -6,6 +6,7 @@ from django.core.validators import MaxValueValidator
|
|
from django.core.exceptions import ValidationError
|
|
from django.core.exceptions import ValidationError
|
|
|
|
|
|
from localflavor.generic.models import IBANField, BICField
|
|
from localflavor.generic.models import IBANField, BICField
|
|
|
|
+from localflavor.fr.models import FRSIRETField
|
|
|
|
|
|
from coin.members.models import count_active_members
|
|
from coin.members.models import count_active_members
|
|
from coin.offers.models import count_active_subscriptions
|
|
from coin.offers.models import count_active_subscriptions
|
|
@@ -166,6 +167,9 @@ class RegisteredOffice(models.Model):
|
|
country_name = models.CharField(max_length=512)
|
|
country_name = models.CharField(max_length=512)
|
|
isp = models.OneToOneField(ISPInfo)
|
|
isp = models.OneToOneField(ISPInfo)
|
|
|
|
|
|
|
|
+ # not in db.ffdn.org spec
|
|
|
|
+ siret = FRSIRETField('SIRET')
|
|
|
|
+
|
|
def to_dict(self):
|
|
def to_dict(self):
|
|
d = dict()
|
|
d = dict()
|
|
for field in ('post_office_box', 'extended_address', 'street_address',
|
|
for field in ('post_office_box', 'extended_address', 'street_address',
|