main flow checked

This commit is contained in:
aminhashemi92 2025-10-03 21:56:25 +03:30
parent b5bf3a5dbe
commit f853ad9784
21 changed files with 365 additions and 89 deletions

View file

@ -83,10 +83,12 @@ class WellForm(forms.ModelForm):
'utm_x': forms.NumberInput(attrs={
'class': 'form-control',
'placeholder': 'X UTM',
'required': 'required',
}),
'utm_y': forms.NumberInput(attrs={
'class': 'form-control',
'placeholder': 'Y UTM',
'required': 'required',
}),
'utm_zone': forms.NumberInput(attrs={
'class': 'form-control',

View file

@ -0,0 +1,35 @@
# Generated by Django 5.2.4 on 2025-10-02 09:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wells', '0004_remove_historicalwell_discharge_pipe_diameter_and_more'),
]
operations = [
migrations.AlterField(
model_name='historicalwell',
name='utm_x',
field=models.DecimalField(decimal_places=0, default=11, max_digits=10, verbose_name='X UTM'),
preserve_default=False,
),
migrations.AlterField(
model_name='historicalwell',
name='utm_y',
field=models.DecimalField(decimal_places=0, default=2, max_digits=10, verbose_name='Y UTM'),
preserve_default=False,
),
migrations.AlterField(
model_name='well',
name='utm_x',
field=models.DecimalField(decimal_places=0, max_digits=10, verbose_name='X UTM'),
),
migrations.AlterField(
model_name='well',
name='utm_y',
field=models.DecimalField(decimal_places=0, max_digits=10, verbose_name='Y UTM'),
),
]

View file

@ -80,15 +80,11 @@ class Well(SluggedModel):
max_digits=10,
decimal_places=0,
verbose_name="X UTM",
null=True,
blank=True
)
utm_y = models.DecimalField(
max_digits=10,
decimal_places=0,
verbose_name="Y UTM",
null=True,
blank=True
)
utm_zone = models.PositiveIntegerField(
verbose_name="زون UTM",