Skip to content

Commit

Permalink
replaced logger with straight up stderr call
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Sep 19, 2015
1 parent 787cf18 commit cf97624
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions django_admin_generator/management/commands/admin_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,13 @@ class Command(base_command.CustomBaseCommand):
can_import_settings = True
requires_system_checks = True

def warning(self, message):
# This replaces the regular warning method from the CustomBaseCommand
# since some Django installations capture all logging output
# unfortunately
sys.stderr.write(message)
sys.stderr.write('\n')

def handle(self, *args, **kwargs):
super(Command, self).handle(*args, **kwargs)

Expand Down

0 comments on commit cf97624

Please sign in to comment.