obrisani lat i lon
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 4.2.9 on 2024-01-09 08:13
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('plovidba_aplikacija', '0002_remove_objektsigurnosti_lokacija_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='objektsigurnosti',
|
||||
name='nazi1v',
|
||||
field=models.CharField(default='test', max_length=255),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 4.2.9 on 2024-01-09 08:13
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('plovidba_aplikacija', '0003_objektsigurnosti_nazi1v'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='objektsigurnosti',
|
||||
name='nazi1v',
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 4.2.9 on 2024-01-09 08:16
|
||||
|
||||
import django.contrib.gis.db.models.fields
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('plovidba_aplikacija', '0004_remove_objektsigurnosti_nazi1v'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='objektsigurnosti',
|
||||
name='lokacija',
|
||||
field=django.contrib.gis.db.models.fields.PointField(null=True, srid=4326),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 4.2.9 on 2024-01-09 08:16
|
||||
|
||||
import django.contrib.gis.db.models.fields
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('plovidba_aplikacija', '0005_objektsigurnosti_lokacija'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='objektsigurnosti',
|
||||
name='lokacija',
|
||||
field=django.contrib.gis.db.models.fields.PointField(null=True, srid=3765),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,21 @@
|
||||
# Generated by Django 4.2.9 on 2024-01-09 08:41
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('plovidba_aplikacija', '0006_alter_objektsigurnosti_lokacija'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='objektsigurnosti',
|
||||
name='lat',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='objektsigurnosti',
|
||||
name='lon',
|
||||
),
|
||||
]
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,9 +1,9 @@
|
||||
from django.db import models
|
||||
from django.contrib.gis.db import models
|
||||
|
||||
# Create your models here.
|
||||
|
||||
class ObjektSigurnosti(models.Model):
|
||||
lat = models.FloatField(default=0.0)
|
||||
lon = models.FloatField(default=0.0)
|
||||
naziv = models.CharField(max_length=255)
|
||||
|
||||
lokacija = models.PointField(null=True, srid=3765)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user