Commit bac3a50d authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

astakos: Omit base projects by default in listing

Add option `--base-projects' to include base projects in the output of
project-list management command.
parent 83322ab3
......@@ -88,7 +88,11 @@ class Command(ListCommand):
action='store_true',
dest='deleted',
default=False,
help="Also so cancelled/terminated projects"),
help="Also show cancelled/terminated projects"),
make_option('--base-projects',
action='store_true',
default=False,
help="Also show base projects"),
)
def get_owner(project):
......@@ -132,6 +136,9 @@ class Command(ListCommand):
if not options['deleted']:
self.excludes["state__in"] = Project.SKIP_STATES
if not options['base_projects']:
self.excludes["is_base"] = True
if options["pending"]:
self.filter_pending()
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment