Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
refactoring: #845 rename constant "crs.CRS_CHOICES" to "crs.CHOICES"
Browse files Browse the repository at this point in the history
  • Loading branch information
das-g committed May 22, 2017
1 parent f3ea192 commit 80817b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
(32760, _('UTM Zone 60, southern hemisphere')),
)

CRS_CHOICES = (
CHOICES = (
(_('Global coordinate reference systems'), GLOBAL_CHOICES),
(_('UTM zones'), UTM_ZONE_CHOICES),
)
2 changes: 1 addition & 1 deletion osmaxx/conversion/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Parametrization(models.Model):
out_format = models.CharField(verbose_name=_("out format"), choices=output_format.CHOICES, max_length=100)
out_srs = models.IntegerField(
verbose_name=_("output SRS"), help_text=_("EPSG code of the output spatial reference system"),
null=True, blank=True, default=4326, choices=crs.CRS_CHOICES
null=True, blank=True, default=4326, choices=crs.CHOICES
)
clipping_area = models.ForeignKey(ClippingArea, verbose_name=_('Clipping Area'), on_delete=models.CASCADE)
detail_level = models.IntegerField(verbose_name=_('detail level'), choices=DETAIL_LEVEL_CHOICES, default=DETAIL_LEVEL_ALL)
Expand Down
2 changes: 1 addition & 1 deletion osmaxx/excerptexport/forms/order_options_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class OrderOptionsMixin(forms.Form):
)
coordinate_reference_system = forms.ChoiceField(
label=_('Coordinate system'),
choices=crs.CRS_CHOICES,
choices=crs.CHOICES,
required=True,
)
detail_level = forms.ChoiceField(
Expand Down
2 changes: 1 addition & 1 deletion osmaxx/excerptexport/models/extraction_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class ExtractionOrder(models.Model):
coordinate_reference_system = models.IntegerField(
verbose_name=_('CRS'), choices=crs.CRS_CHOICES, default=crs.WGS_84
verbose_name=_('CRS'), choices=crs.CHOICES, default=crs.WGS_84
)
detail_level = models.IntegerField(
verbose_name=_('detail level'), choices=DETAIL_LEVEL_CHOICES, default=DETAIL_LEVEL_ALL
Expand Down

0 comments on commit 80817b8

Please sign in to comment.