Skip to content

Commit

Permalink
closes #86
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Mar 23, 2022
1 parent 8e98768 commit b31d2e7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion archiv/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class Meta:
'key_word': autocomplete.ModelSelect2Multiple(
url='archiv-ac:keyword-autocomplete'
),
'ort': autocomplete.ModelSelect2(
'ort': autocomplete.ModelSelect2Multiple(
url='archiv-ac:ort-autocomplete'
)
}
Expand Down
22 changes: 22 additions & 0 deletions archiv/migrations/0033_auto_20220323_0641.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 3.2.9 on 2022-03-23 06:41

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('archiv', '0032_spatialcoverage_geom_collection'),
]

operations = [
migrations.RemoveField(
model_name='stelle',
name='ort',
),
migrations.AddField(
model_name='stelle',
name='ort',
field=models.ManyToManyField(blank=True, help_text='Ort', related_name='rvn_stelle_ort_ort', to='archiv.Ort', verbose_name='Ort'),
),
]
4 changes: 1 addition & 3 deletions archiv/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,11 +1086,9 @@ class Stelle(models.Model):
is_public=True,
arche_prop="hasSubject",
)
ort = models.ForeignKey(
ort = models.ManyToManyField(
"Ort",
related_name='rvn_stelle_ort_ort',
on_delete=models.SET_NULL,
null=True,
blank=True,
verbose_name="Ort",
help_text="Ort",
Expand Down

0 comments on commit b31d2e7

Please sign in to comment.