<s> from tastypie . resources import ModelResource <EOL> from brubeck . design . models import Graphic <EOL> from tastypie import fields <EOL> from brubeck . publishing . api import IssueResource , SectionResource <EOL> class GraphicResource ( ModelResource ) : <EOL> issue = fields . ForeignKey ( IssueResource , '<STR_LIT>' ) <EOL> section = fields . ForeignKey ( SectionResource , '<STR_LIT>' ) <EOL> class Meta : <EOL> queryset = Graphic . objects . all ( ) <EOL> resource_name = '<STR_LIT>' <EOL> allowed_methods = [ '<STR_LIT>' ] </s>
