<s> from django . shortcuts import redirect , render <EOL> from django . views import generic <EOL> from . models import TheUnitedStatesIoLegislatorCurrent <EOL> from . controllers import import_legislators_current_csv <EOL> def import_theunitedstatesio_from_csv_view ( request ) : <EOL> """<STR_LIT>""" <EOL> if not request . user . is_authenticated ( ) : <EOL> return redirect ( '<STR_LIT>' ) <EOL> import_legislators_current_csv ( ) <EOL> template_values = { <EOL> '<STR_LIT>' : TheUnitedStatesIoLegislatorCurrent . objects . order_by ( '<STR_LIT>' ) , <EOL> } <EOL> return render ( request , '<STR_LIT>' , template_values ) <EOL> class LegislatorCurrentDetailView ( generic . DetailView ) : <EOL> model = TheUnitedStatesIoLegislatorCurrent <EOL> template_name = '<STR_LIT>' <EOL> def get_queryset ( self ) : <EOL> """<STR_LIT:U+0020>""" <EOL> return TheUnitedStatesIoLegislatorCurrent . objects </s>
