diff options
| author | Justin Bronn <jbronn@gmail.com> | 2008-10-25 19:16:45 +0000 |
|---|---|---|
| committer | Justin Bronn <jbronn@gmail.com> | 2008-10-25 19:16:45 +0000 |
| commit | 3784c7fac63eb9bbff7fe4b43da933a2607507fd (patch) | |
| tree | 8ae165c43f6478b0b72dbeabb9bdcc1a6e5b5d7a | |
| parent | 03070a9955775017d2e313a851c435bc85041ced (diff) | |
Fixed `ogrinspect` management commannd -- no longer try to pass the global `verbosity` option where it shouldn't go. Refs r9110.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9278 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/gis/management/commands/ogrinspect.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/contrib/gis/management/commands/ogrinspect.py b/django/contrib/gis/management/commands/ogrinspect.py index aa4f41831e..a4957870ea 100644 --- a/django/contrib/gis/management/commands/ogrinspect.py +++ b/django/contrib/gis/management/commands/ogrinspect.py @@ -97,6 +97,9 @@ class Command(ArgsCommand): # Whether the user wants to generate the LayerMapping dictionary as well. show_mapping = options.pop('mapping', False) + # Popping the verbosity global option, as it's not accepted by `_ogrinspect`. + verbosity = options.pop('verbosity', False) + # Returning the output of ogrinspect with the given arguments # and options. from django.contrib.gis.utils.ogrinspect import _ogrinspect, mapping |
