Friday, April 29, 2011

Re: Multiple databases - unmanaged models - get_absolute_url()

{# Hack around Django bug http://code.djangoproject.com/ticket/15931 #} {% extends "admin/change_form.html" %} {% load i18n %} {% block object-tools-items %}
  • {% trans "History" %}
  • {% if has_absolute_url %}
  • {% trans "View on site" %}
  • {% endif%} {% endblock %} I submitted a patch to the admin change form template -- http://code.djangoproject.com/ticket/15931.

    Meanwhile, you can temporarily get around the problem on a per-application basis by adding the attached file to the application package directory at templates/admin/<app_label>/change_form.html.

    --D

    --
    You received this message because you are subscribed to the Google Groups "Django users" group.
    To post to this group, send email to django-users@googlegroups.com.
    To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

    No comments:

    Post a Comment