Thursday, October 1, 2020

How to redirect to a new view other than what is defined in get_absolute_url

I am using linkify in django_tables2 to create a link to an order by defininig get_absolute_url on the model.  My question is if I want to use a url other than the get_absolute_url in another class how do I do this? Is there a way to override this?

#tickets/models.py


#chef/views.py


The goal is to define a new view order function for the chef app instead of using the view order function in the tickets app.  I'm not sure how to do this or if I have included enough information but any help getting pointed in the right direction would be appreciated.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7137d77b-bbbc-490f-984b-98db49774608n%40googlegroups.com.

No comments:

Post a Comment