get_absolute_url lambda self reverse account views user args self id g

1
2
3
4
5
6
7
get_absolute_url = lambda self: reverse('account.views.user', args=[self.id])
get_edit_url = lambda self: reverse('account.views.edit_user', args=[self.id])
@classmethod
def get_create_url(cls):
return reverse('account.views.create_user')
get_list_url = classmethod(lambda cls: reverse('account.views.user_list'))