fill_quest!
This commit is contained in:
parent
18f2ac2de2
commit
77af72d590
4 changed files with 25 additions and 2 deletions
|
@ -398,7 +398,7 @@ def create_editor_form(editor_model):
|
|||
'stroke_opacity', 'fill_color', 'fill_opacity', 'interactive', 'point_icon', 'extra_data', 'show_label',
|
||||
'show_geometry', 'show_label', 'show_geometry', 'default_geomtype', 'cluster_points', 'update_interval',
|
||||
'load_group_display', 'load_group_contribute',
|
||||
'altitude_quest',
|
||||
'altitude_quest', 'fill_quest',
|
||||
]
|
||||
field_names = [field.name for field in editor_model._meta.get_fields()
|
||||
if not field.one_to_many and not isinstance(field, ManyToManyRel)]
|
||||
|
|
|
@ -458,7 +458,10 @@ editor = {
|
|||
collector.find('.wifi-count').text(existing_data?.wifi?.length);
|
||||
collector.find('.ibeacon-count').text(existing_data?.ibeacon?.length);
|
||||
} else {
|
||||
data_field.closest('form').addClass('scan-lock');
|
||||
if (window.mobileclient) {
|
||||
$('[for=id_fill_quest]').hide();
|
||||
data_field.closest('form').addClass('scan-lock');
|
||||
}
|
||||
}
|
||||
data_field.after(collector);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 5.0.8 on 2024-12-27 15:31
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('mapdata', '0132_dataoverlay_update_interval_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='beaconmeasurement',
|
||||
name='fill_quest',
|
||||
field=models.BooleanField(default=False, verbose_name='create a quest to fill this'),
|
||||
),
|
||||
]
|
|
@ -447,6 +447,8 @@ class BeaconMeasurement(SpaceGeometryMixin, models.Model):
|
|||
verbose_name=_('Measurement list'),
|
||||
default=BeaconMeasurementDataSchema())
|
||||
|
||||
fill_quest = models.BooleanField(_('create a quest to fill this'), default=False)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('Beacon Measurement')
|
||||
verbose_name_plural = _('Beacon Measurements')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue