Changeset 305 in main


Ignore:
Timestamp:
09/21/11 09:12:42 (8 years ago)
Author:
pcosquer
Message:

raise an exception instead of returning an httpresponse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/views.py

    r304 r305  
    13751375        request.session.update(initial) 
    13761376    if not form.is_valid(): 
    1377         return HttpResponse('Bad post request') 
     1377        raise ValueError("Invalid form") 
    13781378    graph = NavigationGraph(obj, context_dict["results"]) 
    13791379    options = form.cleaned_data 
Note: See TracChangeset for help on using the changeset viewer.