Revision b6426ead snf-astakos-app/astakos/im/management/commands/group-add.py
b/snf-astakos-app/astakos/im/management/commands/group-add.py | ||
---|---|---|
31 | 31 |
# interpreted as representing official policies, either expressed |
32 | 32 |
# or implied, of GRNET S.A. |
33 | 33 |
|
34 |
from django.core.management.base import BaseCommand, CommandError
|
|
34 |
from django.core.management.base import CommandError |
|
35 | 35 |
|
36 | 36 |
from astakos.im.models import Group |
37 |
from snf_django.management.commands import SynnefoCommand |
|
37 | 38 |
|
38 | 39 |
|
39 |
class Command(BaseCommand):
|
|
40 |
class Command(SynnefoCommand):
|
|
40 | 41 |
args = "<group name>" |
41 | 42 |
help = "Create a group with the given name" |
42 | 43 |
|
43 |
option_list = BaseCommand.option_list + ()
|
|
44 |
option_list = SynnefoCommand.option_list + ()
|
|
44 | 45 |
|
45 | 46 |
def handle(self, *args, **options): |
46 | 47 |
if len(args) != 1: |
Also available in: Unified diff