Skip to content

Commit

Permalink
Removed call to Model._meta.get_ordered_objects(), it was removed fro…
Browse files Browse the repository at this point in the history
…m django 1.6
  • Loading branch information
Javier Cordero committed Nov 25, 2013
1 parent 165be64 commit 8593ab2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions xadmin/views/detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,6 @@ def get(self, request, *args, **kwargs):

@filter_hook
def get_context(self):
ordered_objects = self.opts.get_ordered_objects()

new_context = {
'title': _('%s Detail') % force_unicode(self.opts.verbose_name),
'form': self.form_obj,
Expand All @@ -240,7 +238,6 @@ def get_context(self):
'has_change_permission': self.has_change_permission(self.obj),
'has_delete_permission': self.has_delete_permission(self.obj),

'ordered_objects': ordered_objects,
'content_type_id': ContentType.objects.get_for_model(self.model).id,
}

Expand Down

0 comments on commit 8593ab2

Please sign in to comment.