Skip to content

Instantly share code, notes, and snippets.

@pydanny
Created July 18, 2011 20:23
Show Gist options
  • Select an option

  • Save pydanny/1090555 to your computer and use it in GitHub Desktop.

Select an option

Save pydanny/1090555 to your computer and use it in GitHub Desktop.
class Activity(models.Model):
def get_delete_url(self):
reverse('activity_ajax_delete', kwargs={'id':self.id})
class ActivityItem(models.Model):
def get_delete_url(self):
reverse('activity_ajax_delete', kwargs={'id':self.activity.id})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment