fix linter warnings
This commit is contained in:
parent
03437a3a40
commit
4e15cc1b74
10 changed files with 12 additions and 12 deletions
|
@ -15,7 +15,8 @@ from django.utils import timezone
|
|||
from django.utils.crypto import get_random_string
|
||||
from django.utils.functional import cached_property
|
||||
from django.utils.text import format_lazy
|
||||
from django.utils.translation import gettext_lazy as _, ngettext_lazy
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from django.utils.translation import ngettext_lazy
|
||||
|
||||
from c3nav.mapdata.fields import I18nField
|
||||
from c3nav.mapdata.grid import grid
|
||||
|
|
|
@ -65,7 +65,7 @@ class Report(models.Model):
|
|||
|
||||
@property
|
||||
def form_cls(self):
|
||||
from c3nav.site.forms import ReportMissingLocationForm, ReportIssueForm
|
||||
from c3nav.site.forms import ReportIssueForm, ReportMissingLocationForm
|
||||
return ReportMissingLocationForm if self.category == 'missing-location' else ReportIssueForm
|
||||
|
||||
@cached_property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue