Skip to content
Snippets Groups Projects
Commit 80d72350 authored by Roang's avatar Roang
Browse files

Update create_conference parameter to name

We can generate a slug from the name,
but we can't generate a name from the slug.
parent af5a07cb
Branches
Tags
No related merge requests found
...@@ -341,16 +341,16 @@ def _validate_date(s: str) -> datetime: ...@@ -341,16 +341,16 @@ def _validate_date(s: str) -> datetime:
class Command(BaseCommand): class Command(BaseCommand):
def add_arguments(self, parser): def add_arguments(self, parser):
parser.add_argument( parser.add_argument(
'slug', 'name',
type=str, type=str,
nargs='?', nargs='?',
help='The url slug of the new conference.', help='The name of the new conference',
) )
parser.add_argument( parser.add_argument(
'-n', '-s',
'--name', '--slug',
type=str, type=str,
help='The name of the new conference', help='The url slug of the new conference. If not given, it will be slugified from the name.',
) )
parser.add_argument( parser.add_argument(
'-y', '-y',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment