from requester.models import AutomaticDownload
from tastypie import fields
from tastypie.authentication import SessionAuthentication
from tastypie.resources import ModelResource
from libs.tastypie_polymorphic import ModelResource


class AutomaticDownloadResource(ModelResource):
	class Meta(object):		
		queryset = AutomaticDownload.objects.all()
		resource_name = 'automatic_download'
		filtering = {
			'created': ['exact', 'lt', 'lte', 'gte', 'gt'],
			'modified': ['exact', 'lt', 'lte', 'gte', 'gt'],
		}
		authentication = SessionAuthentication()
from requester.models import AutomaticDownload
from tastypie.authentication import SessionAuthentication
from tastypie.resources import ModelResource


class AutomaticDownloadResource(ModelResource):
	class Meta(object):		
		queryset = AutomaticDownload.objects.all()
		resource_name = 'automatic_download'
		filtering = {
			'created': ['exact', 'lt', 'lte', 'gte', 'gt'],
			'modified': ['exact', 'lt', 'lte', 'gte', 'gt'],
		}
		authentication = SessionAuthentication()
Improve sourcecode (issue #11 and #17).