<s> '''<STR_LIT>''' <EOL> from django . views . generic import create_update <EOL> from models import DummyAggregate <EOL> from expedient . clearinghouse . aggregate . tests . forms import DummyAggForm <EOL> from expedient . common . utils . views import generic_crud <EOL> def create ( request ) : <EOL> def pre_save ( instance , created ) : <EOL> instance . owner = request . user <EOL> return generic_crud ( <EOL> request , <EOL> obj_id = None , <EOL> model = DummyAggregate , <EOL> form_class = DummyAggForm , <EOL> pre_save = pre_save , <EOL> redirect = lambda ( instance ) : "<STR_LIT:/>" , <EOL> template = "<STR_LIT>" , <EOL> ) <EOL> def edit ( request , agg_id = None ) : <EOL> return create_update . update_object ( <EOL> request , <EOL> form_class = DummyAggForm , <EOL> object_id = agg_id , <EOL> post_save_redirect = "<STR_LIT:/>" , <EOL> template_name = "<STR_LIT>" , <EOL> ) </s>
