This commit is contained in:
2026-04-24 02:50:27 +03:30
parent 302124aa87
commit a76af4e766
20 changed files with 430 additions and 147 deletions
@@ -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,
),
),
]
+5
View File
@@ -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,
+1
View File
@@ -15,6 +15,7 @@ class PlantSerializer(serializers.ModelSerializer):
"watering",
"soil",
"temperature",
"growth_stage",
"planting_season",
"harvest_time",
"spacing",
+1
View File
@@ -81,6 +81,7 @@ class PlantListCreateView(APIView):
"watering": "منظم، هفته‌ای ۲-۳ بار",
"soil": "لومی، غنی از مواد آلی",
"temperature": "۲۰-۳۰ درجه سانتی‌گراد",
"growth_stage": "رشد رویشی",
"planting_season": "بهار",
"harvest_time": "۷۰-۹۰ روز پس از کاشت",
"spacing": "۴۵-۶۰ سانتی‌متر",