Changeset 639

Show
Ignore:
Timestamp:
09/28/10 10:37:37 (3 years ago)
Author:
rafael.soares
Message:

also deletes the associated clinical trial when exclude the submission, refs #151

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/opentrials/reviewapp/views.py

    r635 r639  
    130130                            context_instance=RequestContext(request)) 
    131131    if submission.can_delete(): 
     132        if hasattr(submission, 'trial'): 
     133            submission.trial.delete() 
    132134        submission.delete() 
    133135        return HttpResponseRedirect('/accounts/submissionlist/?delete=ok')