我的形式如何獲得申請MAPNAME「表單上的價值.. UDING Django的
class MapForm(forms.ModelForm):
class Meta:
model = Map
fields = ('mapName', 'kmlStr')
和觀點是:
map_form = MapForm(request.POST or None)
if map_form.is_valid():
map = map_form.save(commit=False)
map.mapName=map_form.mapName#is this code right ?
如何獲得MAPNAME的價值,我們'map_form.mapName'?
感謝