You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
542 B
20 lines
542 B
#from tastypie.resources import ModelResource, ALL_WITH_RELATIONS
|
|
#from tastypie import fields
|
|
#from bgpdata.models import AS, CrawlRun
|
|
#
|
|
#class ASResource(ModelResource):
|
|
# crawl = fields.ForeignKey("bgpdata.api.CrawlResource", "crawl")
|
|
# class Meta:
|
|
# list_allowed_methods = ['get']
|
|
# detail_allowed_methods = ['get']
|
|
# filtering = {'crawl': ALL_WITH_RELATIONS}
|
|
#
|
|
# queryset = AS.objects.all()
|
|
# resource_name = "as"
|
|
#
|
|
#class CrawlResource(ModelResource):
|
|
# class Meta:
|
|
# queryset = CrawlRun.objects.all()
|
|
# resource_name = "crawl"
|
|
|