1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Removed interpolation of post_url_continue in the admin.

This commit is contained in:
Aymeric Augustin
2012-12-24 22:43:28 +01:00
parent 59ddb79e90
commit 02f3daadd6
3 changed files with 1 additions and 41 deletions

View File

@@ -71,18 +71,6 @@ class CarAdmin(admin.ModelAdmin):
request, obj, post_url_continue=reverse('admin:admin_custom_urls_car_history', args=[obj.pk]))
class CarDeprecated(models.Model):
""" This class must be removed in Django 1.6 """
name = models.CharField(max_length=20)
class CarDeprecatedAdmin(admin.ModelAdmin):
""" This class must be removed in Django 1.6 """
def response_add(self, request, obj, post_url_continue=None):
return super(CarDeprecatedAdmin, self).response_add(
request, obj, post_url_continue='../%s/history/')
admin.site.register(Action, ActionAdmin)
admin.site.register(Person, PersonAdmin)
admin.site.register(Car, CarAdmin)
admin.site.register(CarDeprecated, CarDeprecatedAdmin)