Revision 1e285210

b/snf-django-lib/snf_django/management/commands/__init__.py
32 32
# or implied, of GRNET S.A.
33 33

  
34 34
from optparse import make_option
35
from django.core.management.base import (BaseCommand, CommandError,
35
from django.core.management.base import (BaseCommand,
36 36
                                         handle_default_options)
37
from django.core.management.base import CommandError as DjangoCommandError
37 38
from django.core.exceptions import FieldError
38 39

  
39 40
from snf_django.management import utils
......
44 45
USER_EMAIL_FIELD = "user.email"
45 46

  
46 47

  
48
class CommandError(DjangoCommandError):
49
    def __str__(self):
50
        return utils.smart_locale_str(self.message)
51

  
52

  
47 53
class SynnefoCommand(BaseCommand):
48 54
    option_list = BaseCommand.option_list + (
49 55
        make_option(

Also available in: Unified diff