Skip to content

Commit

Permalink
Fix deprecated JSONField
Browse files Browse the repository at this point in the history
  • Loading branch information
OKaluza committed May 30, 2023
1 parent 5b9eb22 commit c1722c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class Task(models.Model):
potree_scene = models.JSONField(default=dict, blank=True, help_text=_("Serialized potree scene information used to save/load measurements and camera view angle"), verbose_name=_("Potree Scene"))
epsg = models.IntegerField(null=True, default=None, blank=True, help_text=_("EPSG code of the dataset (if georeferenced)"), verbose_name="EPSG")
tags = models.TextField(db_index=True, default="", blank=True, help_text=_("Task tags"), verbose_name=_("Tags"))
orthophoto_bands = fields.JSONField(default=list, blank=True, help_text=_("List of orthophoto bands"), verbose_name=_("Orthophoto Bands"))
orthophoto_bands = models.JSONField(default=list, blank=True, help_text=_("List of orthophoto bands"), verbose_name=_("Orthophoto Bands"))

class Meta:
verbose_name = _("Task")
Expand Down

0 comments on commit c1722c4

Please sign in to comment.