fix missing editor forms
This commit is contained in:
parent
d3c507e319
commit
794d527fdc
2 changed files with 6 additions and 8 deletions
|
@ -6,4 +6,6 @@ class EditorConfig(AppConfig):
|
||||||
|
|
||||||
def ready(self):
|
def ready(self):
|
||||||
from c3nav.editor.hosters import init_hosters
|
from c3nav.editor.hosters import init_hosters
|
||||||
|
from c3nav.editor.forms import create_editor_forms
|
||||||
init_hosters()
|
init_hosters()
|
||||||
|
create_editor_forms()
|
||||||
|
|
|
@ -2,10 +2,9 @@ import json
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.forms import CharField, Form, ModelForm
|
from django.forms import CharField, ModelForm
|
||||||
from django.forms.models import ModelChoiceField
|
from django.forms.models import ModelChoiceField
|
||||||
from django.forms.widgets import HiddenInput
|
from django.forms.widgets import HiddenInput
|
||||||
from django.utils.translation import ugettext_lazy as _
|
|
||||||
from shapely.geometry.geo import mapping
|
from shapely.geometry.geo import mapping
|
||||||
|
|
||||||
from c3nav.mapdata.models import Package
|
from c3nav.mapdata.models import Package
|
||||||
|
@ -80,9 +79,6 @@ def create_editor_form(feature_model, add_fields=None):
|
||||||
feature_model.EditorForm = EditorForm
|
feature_model.EditorForm = EditorForm
|
||||||
|
|
||||||
|
|
||||||
create_editor_form(Inside)
|
def create_editor_forms():
|
||||||
create_editor_form(Room)
|
create_editor_form(Inside)
|
||||||
|
create_editor_form(Room)
|
||||||
|
|
||||||
class CommitForm(Form):
|
|
||||||
commit_msg = CharField(label=_('Commit message'), max_length=100)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue