|
| 1 | +from django.db import migrations, models |
| 2 | + |
| 3 | + |
| 4 | +class Migration(migrations.Migration): |
| 5 | + |
| 6 | + dependencies = [ |
| 7 | + ("baseline", "0037_livelihoodactivity_sort_key_wealthgroup_idx"), |
| 8 | + ] |
| 9 | + |
| 10 | + operations = [ |
| 11 | + migrations.CreateModel( |
| 12 | + name="OtherLivestockProduction", |
| 13 | + fields=[], |
| 14 | + options={ |
| 15 | + "verbose_name": "Other Livestock Production", |
| 16 | + "verbose_name_plural": "Other Livestock Production", |
| 17 | + "proxy": True, |
| 18 | + "indexes": [], |
| 19 | + "constraints": [], |
| 20 | + }, |
| 21 | + bases=("baseline.livelihoodactivity",), |
| 22 | + ), |
| 23 | + migrations.AlterField( |
| 24 | + model_name="livelihoodactivity", |
| 25 | + name="strategy_type", |
| 26 | + field=models.CharField( |
| 27 | + choices=[ |
| 28 | + ("MilkProduction", "Milk Production"), |
| 29 | + ("ButterProduction", "Butter Production"), |
| 30 | + ("MeatProduction", "Meat Production"), |
| 31 | + ("LivestockSale", "Livestock Sale"), |
| 32 | + ("OtherLivestockProduction", "Other Livestock Production"), |
| 33 | + ("CropProduction", "Crop Production"), |
| 34 | + ("FoodPurchase", "Food Purchase"), |
| 35 | + ("PaymentInKind", "Payment in Kind"), |
| 36 | + ("ReliefGiftOther", "Relief, Gift or Other Food"), |
| 37 | + ("Hunting", "Hunting"), |
| 38 | + ("Fishing", "Fishing"), |
| 39 | + ("WildFoodGathering", "Wild Food Gathering"), |
| 40 | + ("OtherCashIncome", "Other Cash Income"), |
| 41 | + ("OtherPurchase", "Other Purchase"), |
| 42 | + ], |
| 43 | + db_index=True, |
| 44 | + help_text="The type of livelihood strategy, such as crop production, or wild food gathering.", |
| 45 | + max_length=30, |
| 46 | + verbose_name="Strategy Type", |
| 47 | + ), |
| 48 | + ), |
| 49 | + migrations.AlterField( |
| 50 | + model_name="livelihoodstrategy", |
| 51 | + name="strategy_type", |
| 52 | + field=models.CharField( |
| 53 | + choices=[ |
| 54 | + ("MilkProduction", "Milk Production"), |
| 55 | + ("ButterProduction", "Butter Production"), |
| 56 | + ("MeatProduction", "Meat Production"), |
| 57 | + ("LivestockSale", "Livestock Sale"), |
| 58 | + ("OtherLivestockProduction", "Other Livestock Production"), |
| 59 | + ("CropProduction", "Crop Production"), |
| 60 | + ("FoodPurchase", "Food Purchase"), |
| 61 | + ("PaymentInKind", "Payment in Kind"), |
| 62 | + ("ReliefGiftOther", "Relief, Gift or Other Food"), |
| 63 | + ("Hunting", "Hunting"), |
| 64 | + ("Fishing", "Fishing"), |
| 65 | + ("WildFoodGathering", "Wild Food Gathering"), |
| 66 | + ("OtherCashIncome", "Other Cash Income"), |
| 67 | + ("OtherPurchase", "Other Purchase"), |
| 68 | + ], |
| 69 | + db_index=True, |
| 70 | + help_text="The type of livelihood strategy, such as crop production, or wild food gathering.", |
| 71 | + max_length=30, |
| 72 | + verbose_name="Strategy Type", |
| 73 | + ), |
| 74 | + ), |
| 75 | + ] |
0 commit comments