-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from manuGil/devel
Include drawing controls to map view in Answers
- Loading branch information
Showing
24 changed files
with
647 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
SECRET_KEY='' | ||
DATABASE_ENGINE='postgis' | ||
POSTGRES_DBASE='' | ||
POSTGRES_USER='' | ||
POSTGRES_PWD='' | ||
POSTGRES_HOST='localhost' | ||
POSTGRES_PORT='5432' | ||
TEST_DBASE='' | ||
API_PARTY_CMS_URL1224=http://127.0.0.1:8000/ # TODO: find where this is used | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
citizenvoice/apiapp/migrations/0002_linestringlocation_description_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 5.0 on 2024-03-13 12:43 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('apiapp', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='linestringlocation', | ||
name='description', | ||
field=models.CharField(blank=True, max_length=100), | ||
), | ||
migrations.AddField( | ||
model_name='pointlocation', | ||
name='description', | ||
field=models.CharField(blank=True, max_length=100), | ||
), | ||
migrations.AddField( | ||
model_name='polygonlocation', | ||
name='description', | ||
field=models.CharField(blank=True, max_length=100), | ||
), | ||
] |
28 changes: 28 additions & 0 deletions
28
citizenvoice/apiapp/migrations/0003_rename_location_linestringlocation_geometry_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 5.0 on 2024-03-13 12:44 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('apiapp', '0002_linestringlocation_description_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='linestringlocation', | ||
old_name='location', | ||
new_name='geometry', | ||
), | ||
migrations.RenameField( | ||
model_name='pointlocation', | ||
old_name='location', | ||
new_name='geometry', | ||
), | ||
migrations.RenameField( | ||
model_name='polygonlocation', | ||
old_name='location', | ||
new_name='geometry', | ||
), | ||
] |
28 changes: 28 additions & 0 deletions
28
citizenvoice/apiapp/migrations/0004_rename_geometry_linestringlocation_geom_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 5.0 on 2024-03-13 12:46 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('apiapp', '0003_rename_location_linestringlocation_geometry_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='linestringlocation', | ||
old_name='geometry', | ||
new_name='geom', | ||
), | ||
migrations.RenameField( | ||
model_name='pointlocation', | ||
old_name='geometry', | ||
new_name='geom', | ||
), | ||
migrations.RenameField( | ||
model_name='polygonlocation', | ||
old_name='geometry', | ||
new_name='geom', | ||
), | ||
] |
28 changes: 28 additions & 0 deletions
28
citizenvoice/apiapp/migrations/0005_alter_linestringlocation_description_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 5.0 on 2024-03-13 13:18 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('apiapp', '0004_rename_geometry_linestringlocation_geom_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='linestringlocation', | ||
name='description', | ||
field=models.CharField(blank=True, max_length=100, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='pointlocation', | ||
name='description', | ||
field=models.CharField(blank=True, max_length=100, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='polygonlocation', | ||
name='description', | ||
field=models.CharField(blank=True, max_length=100, null=True), | ||
), | ||
] |
62 changes: 62 additions & 0 deletions
62
citizenvoice/apiapp/migrations/0006_remove_linestringlocation_answer_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Generated by Django 5.0 on 2024-03-13 14:33 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('apiapp', '0005_alter_linestringlocation_description_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='linestringlocation', | ||
name='answer', | ||
), | ||
migrations.RemoveField( | ||
model_name='linestringlocation', | ||
name='name', | ||
), | ||
migrations.RemoveField( | ||
model_name='linestringlocation', | ||
name='question', | ||
), | ||
migrations.RemoveField( | ||
model_name='pointlocation', | ||
name='answer', | ||
), | ||
migrations.RemoveField( | ||
model_name='pointlocation', | ||
name='name', | ||
), | ||
migrations.RemoveField( | ||
model_name='pointlocation', | ||
name='question', | ||
), | ||
migrations.RemoveField( | ||
model_name='polygonlocation', | ||
name='answer', | ||
), | ||
migrations.RemoveField( | ||
model_name='polygonlocation', | ||
name='name', | ||
), | ||
migrations.RemoveField( | ||
model_name='polygonlocation', | ||
name='question', | ||
), | ||
migrations.CreateModel( | ||
name='Location', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(blank=True, max_length=100)), | ||
('answer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='apiapp.answer')), | ||
('lines', models.ManyToManyField(blank=True, to='apiapp.linestringlocation')), | ||
('points', models.ManyToManyField(blank=True, to='apiapp.pointlocation')), | ||
('polygons', models.ManyToManyField(blank=True, to='apiapp.polygonlocation')), | ||
('question', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='apiapp.question')), | ||
], | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
citizenvoice/apiapp/migrations/0007_remove_location_answer_answer_locations.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 5.0 on 2024-03-13 16:04 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('apiapp', '0006_remove_linestringlocation_answer_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='location', | ||
name='answer', | ||
), | ||
migrations.AddField( | ||
model_name='answer', | ||
name='locations', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='apiapp.location'), | ||
), | ||
] |
28 changes: 28 additions & 0 deletions
28
citizenvoice/apiapp/migrations/0008_alter_location_lines_alter_location_points_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 5.0 on 2024-03-15 10:16 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('apiapp', '0007_remove_location_answer_answer_locations'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='location', | ||
name='lines', | ||
field=models.ManyToManyField(blank=True, null=True, to='apiapp.linestringlocation'), | ||
), | ||
migrations.AlterField( | ||
model_name='location', | ||
name='points', | ||
field=models.ManyToManyField(blank=True, null=True, to='apiapp.pointlocation'), | ||
), | ||
migrations.AlterField( | ||
model_name='location', | ||
name='polygons', | ||
field=models.ManyToManyField(blank=True, null=True, to='apiapp.polygonlocation'), | ||
), | ||
] |
35 changes: 35 additions & 0 deletions
35
citizenvoice/apiapp/migrations/0009_alter_answer_locations_alter_location_lines_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Generated by Django 5.0 on 2024-03-15 10:29 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('apiapp', '0008_alter_location_lines_alter_location_points_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='answer', | ||
name='locations', | ||
field=models.ForeignKey(blank=True, default=1, on_delete=django.db.models.deletion.CASCADE, to='apiapp.location'), | ||
preserve_default=False, | ||
), | ||
migrations.AlterField( | ||
model_name='location', | ||
name='lines', | ||
field=models.ManyToManyField(blank=True, to='apiapp.linestringlocation'), | ||
), | ||
migrations.AlterField( | ||
model_name='location', | ||
name='points', | ||
field=models.ManyToManyField(blank=True, to='apiapp.pointlocation'), | ||
), | ||
migrations.AlterField( | ||
model_name='location', | ||
name='polygons', | ||
field=models.ManyToManyField(blank=True, to='apiapp.polygonlocation'), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
citizenvoice/apiapp/migrations/0010_alter_answer_locations.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 5.0 on 2024-03-15 10:52 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('apiapp', '0009_alter_answer_locations_alter_location_lines_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='answer', | ||
name='locations', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='apiapp.location'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 5.0 on 2024-03-15 11:00 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('apiapp', '0010_alter_answer_locations'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='answer', | ||
name='body', | ||
field=models.TextField(blank=True, verbose_name='Answer Body'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.