Created
February 16, 2010 14:26
-
-
Save greatestape/305552 to your computer and use it in GitHub Desktop.
This file contains 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
diff --git a/django_extensions/management/commands/dumpscript.py b/django_extensions/management/commands/dumpscript.py | |
index 7039786..1c3cc04 100755 | |
--- a/django_extensions/management/commands/dumpscript.py | |
+++ b/django_extensions/management/commands/dumpscript.py | |
@@ -141,7 +141,7 @@ class ModelCode(Code): | |
""" | |
code = [] | |
- for counter, item in enumerate(self.model.objects.all()): | |
+ for counter, item in enumerate(self.model._default_manager.all()): | |
instance = InstanceCode(instance=item, id=counter+1, context=self.context) | |
self.instances.append(instance) | |
if instance.waiting_list: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment