Beispiel #1
0
 def __init__(self, *args, **kwargs):
     super(AnimalResourcesFeedForm, self).__init__(*args, **kwargs)
     type_of_feed_list = FeedType.objects.values_list('feed_name')
     self.fields['type_of_feed'].widget = ListTextWidget(
         data_list=type_of_feed_list, name='type_of_feed-list')
     feed_source_list = FeedSource.objects.values_list('source')
     self.fields['source'].widget = ListTextWidget(
         data_list=feed_source_list, name='feed_source-list')
Beispiel #2
0
 def __init__(self, *args, **kwargs):
     super(EmployManagerOrLongTermWorkerForm,
           self).__init__(*args, **kwargs)
     yes_or_no = YesOrNo.objects.values_list('title')
     self.fields['employ_manager'].widget = ListTextWidget(
         data_list=yes_or_no, name='yes_or_no')
     self.fields['employ_long_term_worker'].widget = ListTextWidget(
         data_list=yes_or_no, name='yes_or_no_long_term')
Beispiel #3
0
    def __init__(self, *args, **kwargs):
        super(InputUseFertiliserForm, self).__init__(*args, **kwargs)

        fertiliser_type_list = FertilizerType.objects.values_list('type')
        self.fields['fertiliser_type'].widget = ListTextWidget(
            data_list=fertiliser_type_list, name='fertiliser_type-list')

        fertiliser_unit_list = Units.objects.values_list('unit')
        self.fields['fertiliser_unit'].widget = ListTextWidget(
            data_list=fertiliser_unit_list, name='fertiliser_unit_list')
Beispiel #4
0
    def __init__(self, *args, **kwargs):
        super(InputUseSeedsForm, self).__init__(*args, **kwargs)

        home_produced_unit_list = Units.objects.values_list('unit')
        self.fields['home_produced_unit'].widget = ListTextWidget(
            data_list=home_produced_unit_list, name='home_produced_unit_list')

        purchased_unit_list = Units.objects.values_list('unit')
        self.fields['purchased_unit'].widget = ListTextWidget(
            data_list=purchased_unit_list, name='purchased_unit_list')
Beispiel #5
0
 def __init__(self, *args, **kwargs):
     super(AnimalResoursesInventoryForm, self).__init__(*args, **kwargs)
     inventory_list = AnimalTypes.objects.values_list('name')
     self.fields['type'].widget = ListTextWidget(data_list=inventory_list,
                                                 name='inventory-list')
     sex_list = Sex.objects.values_list('sex')
     self.fields['sex'].widget = ListTextWidget(data_list=sex_list,
                                                name='inventory_sex-list')
     cattle_type_list = AnimalCattleType.objects.values_list('type')
     self.fields['cattle_type'].widget = ListTextWidget(
         data_list=cattle_type_list, name='cattle_type-list')
Beispiel #6
0
 def __init__(self, *args, **kwargs):
     super(SpecifiedIrrigationMeansForm, self).__init__(*args, **kwargs)
     item_code_list = IrrigationFlow.objects.values_list('type')
     production_item_code_list = ProductionMeans.objects.values_list('type')
     result_list = list(chain(item_code_list, production_item_code_list))
     self.fields['item_code'].widget = ListTextWidget(data_list=result_list,
                                                      name='item_code-list')
     rental_earnings_units_list = Units.objects.values_list('unit')
     self.fields['rental_earnings_units'].widget = ListTextWidget(
         data_list=rental_earnings_units_list,
         name='rental_earnings_units-list')
Beispiel #7
0
    def __init__(self, *args, **kwargs):
        super(InputUseIrrigationForm, self).__init__(*args, **kwargs)

        irrigation_source_list = IrrigationSource.objects.values_list('source')
        self.fields['irrigation_source'].widget = ListTextWidget(
            data_list=irrigation_source_list, name='irrigation_source_list')

        irrigation_unit_price_list = UnitPrice.objects.values_list(
            'unit_price')
        self.fields['irrigation_unit_price'].widget = ListTextWidget(
            data_list=irrigation_unit_price_list,
            name='irrigation_unit_price_list')
Beispiel #8
0
 def __init__(self, *args, **kwargs):
     super(OutstandingLoansForm, self).__init__(*args, **kwargs)
     source_of_borrowing_list = SourceOfBorrowing.objects.values_list(
         'source_of_borrowing')
     self.fields['source_of_borrowing'].widget = ListTextWidget(
         data_list=source_of_borrowing_list,
         name='source_of_borrowing-list')
     purpose_of_borrowing_list = PurposeOfBorrowing.objects.values_list(
         'purpose_of_borrowing')
     self.fields['purpose_of_borrowing'].widget = ListTextWidget(
         data_list=purpose_of_borrowing_list,
         name='purpose_of_borrowing-list')
Beispiel #9
0
 def __init__(self, *args, **kwargs):
     super(LandMortgagedInForm, self).__init__(*args, **kwargs)
     type_of_land_purchased_list = LandType.objects.values_list('type')
     self.fields['land_type'].widget = ListTextWidget(data_list=type_of_land_purchased_list,name='type_of_land_purchased-list')
     caste_of_seller_list = Caste.objects.values_list('caste')
     self.fields['caste_of_mortgagor'].widget = ListTextWidget(data_list=caste_of_seller_list,name='caste_of_seller-list')
     occupation_of_buyer_list = Occupation.objects.values_list('occupation')
     self.fields['occupation_of_mortgagor'].widget = ListTextWidget(data_list=occupation_of_buyer_list,
                                                                    name='occupation_of_buyer-list')
     interest_usufruct_list = InterestUsufruct.objects.values_list('interestusufruct')
     self.fields['interest_usufruct'].widget = ListTextWidget(data_list=interest_usufruct_list,
                                                                    name='interest_usufruct-list')
Beispiel #10
0
 def __init__(self, *args, **kwargs):
     super(DetailsOfBankPostofficeAccountOfTheHouseholdForm,
           self).__init__(*args, **kwargs)
     name_of_bank_post_office_list = NameOfBankPostOffice.objects.values_list(
         'name_of_bank_post_office')
     self.fields['name_of_bank_post_office'].widget = ListTextWidget(
         data_list=name_of_bank_post_office_list,
         name='name_of_bank_post_office-list')
     type_of_account_list = TypeOfAccount.objects.values_list(
         'type_of_account')
     self.fields['type_of_account'].widget = ListTextWidget(
         data_list=type_of_account_list, name='type_of_account-list')
Beispiel #11
0
    def __init__(self, *args, **kwargs):
        super(NonAgricultureWorkersForm, self).__init__(*args, **kwargs)
        works_list = WorkDescription.objects.values_list('description')
        self.fields['work_description'].widget = ListTextWidget(
            data_list=works_list, name='works_list')

        work_place_list = PlaceOfWork.objects.values_list('place')
        self.fields['work_place'].widget = ListTextWidget(
            data_list=work_place_list, name='work_place_list')

        wage_form_list = WageType.objects.values_list('type')
        self.fields['wage_form'].widget = ListTextWidget(
            data_list=wage_form_list, name='wage_non_form_list')
Beispiel #12
0
    def __init__(self, *args, **kwargs):
        super(PublicDistributionSystemForm, self).__init__(*args, **kwargs)
        type_of_card_list = TypeOfRationCard.objects.values_list('type')
        self.fields['type_of_card'].widget = ListTextWidget(
            data_list=type_of_card_list, name='type_of_card-list')

        color_of_card_list = ColorOfCard.objects.values_list('color')
        self.fields['color_of_card'].widget = ListTextWidget(
            data_list=color_of_card_list, name='color_of_card_list')

        yes_or_no_list = YesOrNo.objects.values_list('title')
        self.fields['does_family_hold_ration_card'].widget = ListTextWidget(
            data_list=yes_or_no_list, name='yes_or_no_list')
Beispiel #13
0
    def __init__(self, *args, **kwargs):
        super(AcquisitionAndLossOfMajorAssetsForm,
              self).__init__(*args, **kwargs)
        assets_list = DescriptionOfAssets.objects.values_list('asset_name')
        self.fields['description_of_asset'].widget = ListTextWidget(
            data_list=assets_list, name='assets-list')

        month_list = Month.objects.values_list('month')
        self.fields['month_of_sale'].widget = ListTextWidget(
            data_list=month_list, name='month_list')

        month_list = Month.objects.values_list('month')
        self.fields['month_of_purchase'].widget = ListTextWidget(
            data_list=month_list, name='month_list')
Beispiel #14
0
 def __init__(self, *args, **kwargs):
     super(OutputAndIncomeForm, self).__init__(*args, **kwargs)
     output_product_list = ProductType.objects.values_list('product_name')
     self.fields['product'].widget = ListTextWidget(
         data_list=output_product_list, name='output_product-list')
     production_unit_list = Units.objects.values_list('unit')
     self.fields['production_unit'].widget = ListTextWidget(
         data_list=production_unit_list, name='production_unit-list')
     sale_unit_list = Units.objects.values_list('unit')
     self.fields['sale_unit'].widget = ListTextWidget(
         data_list=sale_unit_list, name='sale_unit-list')
     price_unit_list = Units.objects.values_list('unit')
     self.fields['price_unit'].widget = ListTextWidget(
         data_list=price_unit_list, name='price_unit-list')
Beispiel #15
0
    def __init__(self, *args, **kwargs):
        super(IncomeFromStateAndCommonPropertyResourcesForm,
              self).__init__(*args, **kwargs)
        item_list = ItemType.objects.values_list('item')
        self.fields['item_collected'].widget = ListTextWidget(
            data_list=item_list, name='item-list')

        marketed_list = WhereMarketed.objects.values_list('place_of_market')
        self.fields['where_marketed'].widget = ListTextWidget(
            data_list=marketed_list, name='marketed-list')

        agencies_list = MarketingAgencies.objects.values_list(
            'marketing_agency')
        self.fields['marketing_agency'].widget = ListTextWidget(
            data_list=agencies_list, name='agencies-list')
Beispiel #16
0
    def __init__(self, *args, **kwargs):
        super(InstitutionalSupportForm, self).__init__(*args, **kwargs)

        category_list = InstitutionalSupportCategory.objects.values_list(
            'category_name')
        self.fields['category'].widget = ListTextWidget(
            data_list=category_list, name='category_list')

        support_nature_list = SupportNature.objects.values_list('support')
        self.fields['nature_of_support_or_purpose'].widget = ListTextWidget(
            data_list=support_nature_list, name='support_nature_list')

        institution_list = Institution.objects.values_list('name')
        self.fields['name_of_institution'].widget = ListTextWidget(
            data_list=institution_list, name='institution_list')
Beispiel #17
0
 def __init__(self, *args, **kwargs):
     super(LandSoldForm, self).__init__(*args, **kwargs)
     type_of_land_sold_list = LandType.objects.values_list('type')
     self.fields['type_of_land_sold'].widget = ListTextWidget(
         data_list=type_of_land_sold_list, name='type_of_land_sold-list')
     caste_of_buyer_list = Caste.objects.values_list('caste')
     self.fields['caste_of_buyer'].widget = ListTextWidget(
         data_list=caste_of_buyer_list, name='caste_of_buyer-list')
     occupation_of_buyer_list = Occupation.objects.values_list('occupation')
     self.fields['occupation_of_buyer'].widget = ListTextWidget(
         data_list=occupation_of_buyer_list,
         name='occupation_of_buyer-list')
     place_of_residence_list = PlaceOfResidence.objects.values_list('place')
     self.fields['place_of_residence'].widget = ListTextWidget(
         data_list=place_of_residence_list, name='place_of_residence-list')
Beispiel #18
0
    def __init__(self, *args, **kwargs):
        super(InputUseManureForm, self).__init__(*args, **kwargs)

        manure_type_list = ManureType.objects.values_list('type')
        self.fields['manure_type'].widget = ListTextWidget(
            data_list=manure_type_list, name='manure_type-list')

        manure_home_unit_list = Units.objects.values_list('unit')
        self.fields['manure_home_unit'].widget = ListTextWidget(
            data_list=manure_home_unit_list, name='manure_home_unit-list')

        manure_purchased_unit_list = Units.objects.values_list('unit')
        self.fields['manure_purchased_unit'].widget = ListTextWidget(
            data_list=manure_purchased_unit_list,
            name='manure_purchased_unit-list')
Beispiel #19
0
 def __init__(self, *args, **kwargs):
     super(MembershipInSelfHelpGroupsForm, self).__init__(*args, **kwargs)
     bank_ngo_to_which_the_group_is_linked_list = BankNgoToWhichTheGroupIsLinked.objects.values_list(
         'bank_ngo_to_which_the_group_is_linked')
     self.fields[
         'bank_ngo_to_which_the_group_is_linked'].widget = ListTextWidget(
             data_list=bank_ngo_to_which_the_group_is_linked_list,
             name='bank_ngo_to_which_the_group_is_linked-list')
Beispiel #20
0
    def __init__(self, *args, **kwargs):
        super(ForChildrenOfAge616YearsForm, self).__init__(*args, **kwargs)

        whether_enrolled_in_eductional_institution_currently_list = YesOrNo.objects.values_list(
            'title')
        self.fields[
            'whether_enrolled_in_eductional_institution_currently'].widget = ListTextWidget(
                data_list=
                whether_enrolled_in_eductional_institution_currently_list,
                name='whether_enrolled_in_eductional_institution_currently_list'
            )

        whether_ever_enrolled_in_school_list = YesOrNo.objects.values_list(
            'title')
        self.fields['whether_ever_enrolled_in_school'].widget = ListTextWidget(
            data_list=whether_ever_enrolled_in_school_list,
            name='whether_ever_enrolled_in_school_list')
Beispiel #21
0
 def __init__(self, *args, **kwargs):
     super(LandLeasedOutOnShareRentForm, self).__init__(*args, **kwargs)
     type_of_land_purchased_list = LandType.objects.values_list('type')
     self.fields['land_type'].widget = ListTextWidget(data_list=type_of_land_purchased_list,
                                                      name='type_of_land_purchased-list')
     caste_list = Caste.objects.values_list('caste')
     self.fields['caste_of_sharecropper'].widget = ListTextWidget(data_list=caste_list,
                                                               name='caste-list')
     occupation_of_sharecropper_list = Occupation.objects.values_list('occupation')
     self.fields['occupation_of_sharecropper'].widget = ListTextWidget(data_list=occupation_of_sharecropper_list,
                                                                    name='occupation_of_lessor_list')
     registration_list = Registration.objects.values_list('registration')
     self.fields['registered_unregistered'].widget = ListTextWidget(data_list=registration_list,
                                                                 name='registration_list')
     season_list = SeasonalYearlyOther.objects.values_list('seasonalyearlyother')
     self.fields['seasonal_annual_other'].widget = ListTextWidget(data_list=season_list,
                                                                    name='seasons')
Beispiel #22
0
 def __init__(self, *args, **kwargs):
     super(LoansBorrowedLastYearAndRepaidForm,
           self).__init__(*args, **kwargs)
     month_when_fully_repaid_list = Month.objects.values_list('month')
     self.fields['month_when_fully_repaid'].widget = ListTextWidget(
         data_list=month_when_fully_repaid_list,
         name='month_when_fully_repaid-list')
     source_of_borrowing_list = SourceOfBorrowing.objects.values_list(
         'source_of_borrowing')
     self.fields['source_of_borrowing'].widget = ListTextWidget(
         data_list=source_of_borrowing_list,
         name='source_of_borrowing-list')
     purpose_of_borrowing_list = PurposeOfBorrowing.objects.values_list(
         'purpose_of_borrowing')
     self.fields['purpose_of_borrowing'].widget = ListTextWidget(
         data_list=purpose_of_borrowing_list,
         name='purpose_of_borrowing-list')
Beispiel #23
0
 def __init__(self, *args, **kwargs):
     """Initialize the choices for item widget"""
     super(OtherCostsExtraForm, self).__init__(*args, **kwargs)
     self.fields['item'].widget = forms.Select(
         choices=[(c.item, c.item) for c in OtherCostsItems.objects.all()])
     month_of_payment_list = Month.objects.values_list('month')
     self.fields['month_of_payment'].widget = ListTextWidget(
         data_list=month_of_payment_list, name='month_of_payment-list')
Beispiel #24
0
    def __init__(self, *args, **kwargs):
        super(WaterForDomesticUseForm, self).__init__(*args, **kwargs)
        source_list = SourceOfWater.objects.values_list('source')
        self.fields['source_of_water'].widget = ListTextWidget(
            data_list=source_list, name='source-list')

        ownership_list = SourceOfWaterOwnership.objects.values_list(
            'ownership')
        self.fields['ownership'].widget = ListTextWidget(
            data_list=ownership_list, name='ownership_list')

        distance_list = WaterSourceDistanceFromHouse.objects.values_list(
            'distance')
        self.fields['distance'].widget = ListTextWidget(
            data_list=distance_list, name='distance_list')

        drinking_list = PurposeForWhichUsed.objects.values_list('purpose')
        self.fields['drinking'].widget = ListTextWidget(
            data_list=drinking_list, name='drinking_list')

        cooking_list = PurposeForWhichUsed.objects.values_list('purpose')
        self.fields['cooking'].widget = ListTextWidget(data_list=cooking_list,
                                                       name='cooking_list')

        bathing_or_cleaning_list = PurposeForWhichUsed.objects.values_list(
            'purpose')
        self.fields['bathing_or_cleaning'].widget = ListTextWidget(
            data_list=bathing_or_cleaning_list,
            name='bathing_or_cleaning_list')

        for_animals_list = PurposeForWhichUsed.objects.values_list('purpose')
        self.fields['for_animals'].widget = ListTextWidget(
            data_list=for_animals_list, name='for_animals_list')
Beispiel #25
0
    def __init__(self, *args, **kwargs):
        super(LongTermWorkersForm, self).__init__(*args, **kwargs)
        caste_list = Caste.objects.values_list('caste')
        self.fields['caste'].widget = ListTextWidget(data_list=caste_list,
                                                     name='caste-list')

        occupation_list = Occupation.objects.values_list('occupation')
        self.fields['occupation'].widget = ListTextWidget(
            data_list=occupation_list, name='occupation_list')

        agricultural_labour_yes_or_no = YesOrNo.objects.values_list('title')
        self.fields['agricultural_labor'].widget = ListTextWidget(
            data_list=agricultural_labour_yes_or_no,
            name='agricultural_labour_yes_or_no')

        operating_machines_yes_or_no = YesOrNo.objects.values_list('title')
        self.fields['operating_machines'].widget = ListTextWidget(
            data_list=operating_machines_yes_or_no,
            name='operating_machines_yes_or_no')

        tending_animals_yes_or_no = YesOrNo.objects.values_list('title')
        self.fields['tending_animals'].widget = ListTextWidget(
            data_list=tending_animals_yes_or_no,
            name='tending_animals_yes_or_no')

        non_agri_business_yes_or_no = YesOrNo.objects.values_list('title')
        self.fields['non_agri_business'].widget = ListTextWidget(
            data_list=non_agri_business_yes_or_no,
            name='non_agri_business_yes_or_no')

        work_description_list = WorkDescription.objects.values_list(
            'description')
        self.fields['domestic_work'].widget = ListTextWidget(
            data_list=work_description_list, name='work_description_list')
Beispiel #26
0
 def __init__(self, *args, **kwargs):
     super(CurrentOwnershipHoldingForm, self).__init__(*args, **kwargs)
     land_type_list = LandType.objects.values_list('type')
     self.fields['land_type'].widget = ListTextWidget(
         data_list=land_type_list, name='land_type-list')
     acquisition_mode_list = AcquisitionMode.objects.values_list(
         'acquisition')
     self.fields['acquisition_mode'].widget = ListTextWidget(
         data_list=acquisition_mode_list, name='acquisition_mode-list')
     irrigation_source_list = IrrigationSource.objects.values_list('source')
     self.fields['irrigation_source'].widget = ListTextWidget(
         data_list=irrigation_source_list, name='irrigation_source-list')
     irrigation_flow_list = IrrigationFlow.objects.values_list('type')
     self.fields['irrigation_flow'].widget = ListTextWidget(
         data_list=irrigation_flow_list, name='irrigation_flow-list')
     irrigation_ownership_list = IrrigationOwnership.objects.values_list(
         'owner')
     self.fields['irrigation_ownership'].widget = ListTextWidget(
         data_list=irrigation_ownership_list,
         name='irrigation_ownership-list')
Beispiel #27
0
 def __init__(self, *args, **kwargs):
     super(LandLeasedOutOnFixedRentForm, self).__init__(*args, **kwargs)
     type_of_land_purchased_list = LandType.objects.values_list('type')
     self.fields['land_type'].widget = ListTextWidget(
         data_list=type_of_land_purchased_list,
         name='type_of_land_purchased-list')
     caste_of_seller_list = Caste.objects.values_list('caste')
     self.fields['caste_of_lessee'].widget = ListTextWidget(
         data_list=caste_of_seller_list, name='caste_of_seller-list')
     registered_unregistered_list = Registration.objects.values_list(
         'registration')
     self.fields['registered_unregistered'].widget = ListTextWidget(
         data_list=registered_unregistered_list,
         name='registered_unregistered_list')
     contract_list = TypeOfContract.objects.values_list('type_of_contract')
     self.fields['type_of_contract'].widget = ListTextWidget(
         data_list=contract_list, name='contract-list')
     occupation_of_lessee_list = Occupation.objects.values_list(
         'occupation')
     self.fields['occupation_of_lessee'].widget = ListTextWidget(
         data_list=occupation_of_lessee_list,
         name='occupation_of_lessee-list')
Beispiel #28
0
    def __init__(self, *args, **kwargs):
        super(PatternOfAgriculturalLabouringOutForm,
              self).__init__(*args, **kwargs)
        sex_list = Sex.objects.values_list('sex')
        self.fields['sex'].widget = ListTextWidget(data_list=sex_list,
                                                   name='sex_list')

        crop_list = Crop.objects.values_list('name')
        self.fields['crop'].widget = ListTextWidget(data_list=crop_list,
                                                    name='crop_list')

        wages_list = TypeOfWage.objects.values_list('type')
        self.fields['type_of_wage'].widget = ListTextWidget(
            data_list=wages_list, name='wages_list')

        places_list = PlaceOfWork.objects.values_list('place')
        self.fields['place_of_work'].widget = ListTextWidget(
            data_list=places_list, name='places_list')

        wage_unit_list = WageUnit.objects.values_list('unit')
        self.fields['unit'].widget = ListTextWidget(data_list=wage_unit_list,
                                                    name='wage_unit_list')
Beispiel #29
0
 def __init__(self, *args, **kwargs):
     super(HouseholdIntroductionForm, self).__init__(*args, **kwargs)
     caste_list = Caste.objects.values_list('caste')
     self.fields['caste_tribe'].widget = ListTextWidget(data_list=caste_list, name='caste-list')
     sex_list = Sex.objects.values_list('sex')
     self.fields['sex'].widget = ListTextWidget(data_list=sex_list, name='sex-list')
     religion_list = Religion.objects.values_list('religion')
     self.fields['religion'].widget = ListTextWidget(data_list=religion_list, name='religion-list')
     father_occupation_list = Occupation.objects.values_list('occupation')
     self.fields['father_occupation'].widget = ListTextWidget(data_list=father_occupation_list, name='father_occupation-list')
     tehsil_of_birth_list = TehsilOfBirth.objects.values_list('tehsil')
     self.fields['birth_tehsil'].widget = ListTextWidget(data_list=tehsil_of_birth_list, name='birth_tehsil-list')
     birth_village_list = BirthVillage.objects.values_list('villageName')
     self.fields['birth_village'].widget = ListTextWidget(data_list=birth_village_list, name='birth-village-list')
     birth_district_list = BirthDistrict.objects.values_list('name')
     self.fields['birth_district'].widget = ListTextWidget(data_list=birth_district_list, name='birth_district_list')
     SC_ST_list = SC_ST_others.objects.values_list('caste')
     self.fields['sc_st_others'].widget = ListTextWidget(data_list=SC_ST_list, name='SC_ST_list')
Beispiel #30
0
 def __init__(self, *args, **kwargs):
     super(CroppingPatternAndCropScheduleForm, self).__init__(*args, **kwargs)
     crops_list = Crop.objects.values_list('name')
     self.fields['crop'].widget = ListTextWidget(data_list=crops_list, name='cropping-list')
     tenurial_status_list = Tenurial.objects.values_list('status')
     self.fields['tenurial_status'].widget = ListTextWidget(data_list=tenurial_status_list, name='tenurial_status_pattern-list')
     crop_homestead_land_list = HomesteadLand.objects.values_list('land_name')
     self.fields['crop_homestead_land'].widget = ListTextWidget(data_list=crop_homestead_land_list, name='cropping_crop_homestead_land-list')
     month_of_sowing_list = Month.objects.values_list('month')
     self.fields['month_of_sowing'].widget = ListTextWidget(data_list=month_of_sowing_list, name='cropping_month_of_sowing-list')
     month_of_harvesting_list = Month.objects.values_list('month')
     self.fields['month_of_harvesting'].widget = ListTextWidget(data_list=month_of_harvesting_list, name='cropping_month_of_harvesting-list')
     source_of_irrigation_list = IrrigationSource.objects.values_list('source')
     self.fields['source_of_irrigation'].widget = ListTextWidget(data_list=source_of_irrigation_list, name='cropping_source_of_irrigation-list')