Skip to content

Commit

Permalink
Sorted variables in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Oprea committed Apr 20, 2012
1 parent bd0fe95 commit 8dddb0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smartsnippets/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def change_view(self, request, object_id, extra_context=None):
if extra_context is None:
extra_context = {}
pointer = SmartSnippetPointer.objects.get(pk=object_id)
variables = pointer.variables.all()
variables = pointer.variables.all().order_by('snippet_variable__name')
extra_context.update({'variables':
[widget_pool.get_widget(var.widget)(var) for var in variables]
})
Expand Down

0 comments on commit 8dddb0e

Please sign in to comment.