Created
July 18, 2011 20:23
-
-
Save pydanny/1090555 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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