2021-09-15 16:51:43 +02:00
|
|
|
from django.forms import ModelForm
|
|
|
|
|
|
|
|
from locations.models import Location
|
|
|
|
|
|
|
|
|
|
|
|
class LocationForm(ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = Location
|
2022-07-05 18:37:21 +02:00
|
|
|
fields = ["name", "aliases", "description_md", "parent", "image"]
|