Ticket #1417: model.diff

File model.diff, 590 bytes (added by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>, 19 years ago)
  • django/contrib/admin/models.py

     
    4848        Returns the admin URL to edit the object represented by this log entry.
    4949        This is relative to the Django admin index page.
    5050        """
    51         return "%s/%s/%s/" % (self.content_type.package, self.content_type.python_module_name, self.object_id)
     51        return "%s/%s/%s/" % (self.content_type.app_label, self.content_type.model, self.object_id)
Back to Top