python - define 2 GET ABSOLUTE URL method -


can use 2 times? solution?

this code:

def get_absolute_url(self):     return reverse('vehicule_app:container-view')  def get_absolute_url(self):     return reverse('vehicule_app:details', kwargs={'pk' : self.pk})` 


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -