def on_after_save(request, obj): versionate(request.user, obj) return {'redirect': obj.view_url}
def on_after_save(request, obj): versionate(request.user, obj) url = reverse('view_community', args=(obj.id, )) return {'redirect': url}
def on_after_save(request, need): versionate(request.user, need) redirect_url = reverse('view_need', kwargs={'id': need.pk}) return {'redirect': redirect_url}
def on_after_save(request, obj): versionate(request.user, obj) return {"redirect": obj.view_url}
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}
def on_after_save(request, obj): versionate(request.user, obj) url = reverse('view_community', args=(obj.id,)) return {'redirect': url}
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}
def on_after_save(request, obj): versionate(request.user, obj) return {'redirect': reverse('view_organization', kwargs={'id': obj.id})}