UPDATE
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("plant", "0004_plant_growth_profile"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="plant",
|
||||
name="growth_stage",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="مرحله رشد",
|
||||
max_length=255,
|
||||
),
|
||||
),
|
||||
]
|
||||
@@ -32,6 +32,11 @@ class Plant(models.Model):
|
||||
blank=True,
|
||||
help_text="دمای مناسب",
|
||||
)
|
||||
growth_stage = models.CharField(
|
||||
max_length=255,
|
||||
blank=True,
|
||||
help_text="مرحله رشد",
|
||||
)
|
||||
planting_season = models.CharField(
|
||||
max_length=255,
|
||||
blank=True,
|
||||
|
||||
@@ -15,6 +15,7 @@ class PlantSerializer(serializers.ModelSerializer):
|
||||
"watering",
|
||||
"soil",
|
||||
"temperature",
|
||||
"growth_stage",
|
||||
"planting_season",
|
||||
"harvest_time",
|
||||
"spacing",
|
||||
|
||||
@@ -81,6 +81,7 @@ class PlantListCreateView(APIView):
|
||||
"watering": "منظم، هفتهای ۲-۳ بار",
|
||||
"soil": "لومی، غنی از مواد آلی",
|
||||
"temperature": "۲۰-۳۰ درجه سانتیگراد",
|
||||
"growth_stage": "رشد رویشی",
|
||||
"planting_season": "بهار",
|
||||
"harvest_time": "۷۰-۹۰ روز پس از کاشت",
|
||||
"spacing": "۴۵-۶۰ سانتیمتر",
|
||||
|
||||
Reference in New Issue
Block a user