Ejemplo n.º 1
0
 def insert_photo_use(self):
     if self.data_delete:
         UsePhotos.objects.all().delete()
         self.stdout.write('delete data: photo use. \n')
     else:
         if UsePhotos.objects.all().count() == 0:
             use_photos_helper = PhotoUseHelper()
             use_photos_helper.insert_data()
             self.stdout.write('Successfully inserted data: photo use. \n')
         else:
             self.stdout.write('can not insert the data: photo use. \n')
Ejemplo n.º 2
0
 def insert_photo_use(self):
     if self.data_delete:
         UsePhotos.objects.all().delete()
         self.stdout.write('delete data: photo use. \n')
     else:
         if UsePhotos.objects.all().count() == 0:
             use_photos_helper = PhotoUseHelper()
             use_photos_helper.insert_data()
             self.stdout.write('Successfully inserted data: photo use. \n')
         else:
             self.stdout.write('can not insert the data: photo use. \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()