Improved location widget
This commit is contained in:
@@ -20,7 +20,7 @@ class Event ( models.Model ):
|
||||
title = models.CharField( max_length=40, verbose_name = _("titel") )
|
||||
type = models.CharField( max_length=6, choices=EVENT_TYPES, default='Reh', verbose_name= _("type") )
|
||||
location = models.TextField( blank=False, verbose_name=_("location") )
|
||||
map_location = PlainLocationField( based_fields = [location], zoom=7 )
|
||||
map_location = PlainLocationField( based_field = location, zoom=7 )
|
||||
desc = models.TextField( blank=True, verbose_name=_("description"))
|
||||
|
||||
date = models.DateField( verbose_name= _("date") )
|
||||
|
||||
Reference in New Issue
Block a user