@login_required()
def my_publication_modal(request):
    if request.method == u'POST':
        form = None
        publication_id = int(request.POST['publication_id'])
        if publication_id > 0:
            upload = Publication.objects.get(publication_id=publication_id)
            form = PublicationForm(instance=upload)
        else:
            form = PublicationForm()
        return render(request, 'publisher/my_publication/modal.html',{
            'form': form,
        })
dataset/ETHPy150Open AcademicsToday/py-academicstoday/academicstoday_project/publisher/views/my_publication.py/my_publication_modal/original