else:
        # No POST, so we want a brand new form without any data or
errors.
        errors = new_data = {}

Copy from the admin view:

    else:
        # Add default data.
        new_data = manipulator.flatten_data()

        # Override the defaults with request.GET, if it exists.
        new_data.update(request.GET)
        errors = {}

Hope it works.

Bye
--
Pedro

Reply via email to