<s> from common . views import JSONResponse <EOL> from django . views . generic import View <EOL> from models import Image <EOL> class ImagesView ( View ) : <EOL> def get ( self , request ) : <EOL> images = Image . objects . all ( ) <EOL> slugs = [ ] <EOL> for image in images : <EOL> slugs . append ( image . slug ) <EOL> return JSONResponse ( slugs ) </s>
