Created
March 26, 2012 20:08
-
-
Save bohde/2209304 to your computer and use it in GitHub Desktop.
exampleo of overriding get_object_list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CinemaInfoResource(ModelResource): | |
class Meta: | |
object_class = CinemaInfo | |
def get_object_list(self): | |
return CinemaInfo.objects.all() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment