def document_form_initial(document):
 return {'title': document.title, 'slug': document.slug, 'is_localizable': document.is_localizable, 'tags': list(document.tags.names())}

def document_form_initial ( document ) : return { 'title' : document . title , 'slug' : document . slug , 'is_localizable' : document . is_localizable , 'tags' : list ( document . tags . names ( ) ) }
return a dict with the document data pertinent for the form .