Reorder GroupDetailView code in view.py.