django.core.files.base.FileObj - python examples

Here are the examples of the python api django.core.files.base.FileObj taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 View Complete Implementation :
Copyright BSD 3-Clause "New" or "Revised" License
Author : NetEaseGame
    def getfile(self, *args, **kwargs):
        if self.blob:
            return self.blob.getfile()
        return FileObj(ChunkedFileBlobIndexWrapper(FileBlobIndex.objects.filter(
        ).select_related('blob').order_by('offset')), 'rb')