How to create new link to run a function #1542
RahulSwami01
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i was trying to understand this link, but not sure how the link is created.
directory_table_list.html
a href="{{ file.get_admin_delete_url }}{% filer_admin_context_url_params %}" title="{% translate 'Remove file' %}" class="action-button"></a
How above link is executing this function: fileadmin.py
def delete_view(self, request, object_id, extra_context=None):
When i create a similar function like get_admin_run_url I get error.
a href="{{ file.get_admin_run_url }}" title="{% translate 'Run file' %}" class="action-button" onclick="{% runfile %}"></a
filemodels.py
def get_admin_run_url(self):
return self.get_admin_url("run")
ERROR:-
Beta Was this translation helpful? Give feedback.
All reactions