﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11891	The attributes of the original get_absolute_url defined in the model is not copied	Nils Fredrik Gjerull	nobody	"I have made an app that assist in purging upstream web caches and it uses, among other methods, get_absolute_url. Because I don't always want to purge based on get_absolute_url I added an attribute to get_absolute_url named purge. This attribute gets lost because get_absolute_url is changed with the get_absolute_url that do absolute url overrides, curried with the original function. The original function's attributes should be added to the new curried function.
{{{
#!python
class AModel(models.Model):
    def get_absolute_url(self):
        return '/some_url/'
    get_absolute_url.purge = True
}}}"		closed	Database layer (models, ORM)	1.1		fixed	attributes get_absolute_url		Ready for checkin	1	0	0	0	0	0
