Ejemplo n.º 1
0
 def insert_currency(self):
     if self.data_delete:
         Currency.objects.all().delete()
         self.stdout.write('delete data:  currency. \n')
     else:
         if Currency.objects.all().count() == 0:
             currency_helper = CurrencyHelper()
             currency_helper.insert_data()
             self.stdout.write('Successfully inserted data: currency. \n')
         else:
             self.stdout.write('can not insert the data: currency. \n')
Ejemplo n.º 2
0
 def insert_currency(self):
     if self.data_delete:
         Currency.objects.all().delete()
         self.stdout.write('delete data:  currency. \n')
     else:
         if Currency.objects.all().count() == 0:
             currency_helper = CurrencyHelper()
             currency_helper.insert_data()
             self.stdout.write('Successfully inserted data: currency. \n')
         else:
             self.stdout.write('can not insert the data: currency. \n')
Ejemplo n.º 3
0
    def __init__(self):
        self.country_helper = CountryHelper()
        self.feature_helper = FeatureHelper()

        self.entry_helper = EntryHelper()
        self.brand_helper = BrandHelper()
        self.commercial_helper = CommercialHelper()
        self.project_helper = ProjectHelper()
        self.model_helper = ModelHelper()
        self.model_feature_helper = ModelFeatureHelper()
        self.super_admin_helper = SuperAdminHelper()
        self.group_helper = GroupHelper()
        self.type_client_helper = TypeClientHelper()
        self.client_helper = ClientHelper()
        self.type_casting_helper = TypeCastingHelper()
        self.currency_helper = CurrencyHelper()
        self.type_photo_casting_helper = TypePhotoCastingHelper()
        self.photo_use_helper = PhotoUseHelper()
        self.type_event_helper = TypeEventHelper()
        self.broadcast_helper = BroadcastHelper()