示例#1
0
 def on_after_save(request, obj):
     versionate(request.user, obj)
     return {'redirect': obj.view_url}
示例#2
0
 def on_after_save(request, obj):
     versionate(request.user, obj)
     url = reverse('view_community', args=(obj.id, ))
     return {'redirect': url}
示例#3
0
 def on_after_save(request, need):
     versionate(request.user, need)
     redirect_url = reverse('view_need', kwargs={'id': need.pk})
     return {'redirect': redirect_url}
示例#4
0
 def on_after_save(request, obj):
     versionate(request.user, obj)
     return {"redirect": obj.view_url}
示例#5
0
 def on_after_save(request, obj):
     # add user who edited as contributor.
     obj.contributors.add(request.user)
     versionate(request.user, obj)
     return {'redirect': obj.view_url}
示例#6
0
 def on_after_save(request, obj):
     versionate(request.user, obj)
     url = reverse('view_community', args=(obj.id,))
     return {'redirect': url}
示例#7
0
 def on_after_save(request, project):
     send_explanations_mail(project.creator, 'project')
     # Add the project creator as contributor
     project.contributors.add(project.creator)
     versionate(request.user, project)
     return {'redirect': project.view_url}
示例#8
0
 def on_after_save(request, need):
     versionate(request.user, need)
     redirect_url = reverse('view_need', kwargs={'id': need.pk})
     return {'redirect': redirect_url}
示例#9
0
 def on_after_save(request, obj):
     versionate(request.user, obj)
     return {'redirect': reverse('view_organization',
                                 kwargs={'id': obj.id})}
示例#10
0
 def on_after_save(request, obj):
     # add user who edited as contributor.
     obj.contributors.add(request.user)
     versionate(request.user, obj)
     return {'redirect': obj.view_url}
示例#11
0
 def on_after_save(request, project):
     send_explanations_mail(project.creator, 'project')
     # Add the project creator as contributor
     project.contributors.add(project.creator)
     versionate(request.user, project)
     return {'redirect': project.view_url}