Ticket #5041: quoteurl_logentry.patch

File quoteurl_logentry.patch, 589 bytes (added by jdetaeye@…, 8 years ago)

Updating also the logentry

  • models.py

     
    4949        Returns the admin URL to edit the object represented by this log entry.
    5050        This is relative to the Django admin index page.
    5151        """
    52         return u"%s/%s/%s/" % (self.content_type.app_label, self.content_type.model, self.object_id)
     52        from django.contrib.admin.views.main import quote
     53        return u"%s/%s/%s/" % (self.content_type.app_label, self.content_type.model, quote(self.object_id))
Back to Top