mirror of
https://github.com/yweber/lodel2.git
synced 2026-07-29 01:03:28 +02:00
Cleaning and commenting
This commit is contained in:
parent
2b6615775c
commit
d35fa8c56e
3 changed files with 9 additions and 9 deletions
|
|
@ -13,10 +13,12 @@ class Command(BaseCommand):
|
|||
help = 'List all the possible field types'
|
||||
|
||||
def handle(self, *args, **options):
|
||||
ftl = EmField.fieldtypes_list()
|
||||
ftl.sort()
|
||||
if options['silent']:
|
||||
for ftype in EmField.fieldtypes_list():
|
||||
self.stdout.write("\t%s\n"%ftype)
|
||||
for ftype in ftl:
|
||||
self.stdout.write("%s\n"%ftype)
|
||||
else:
|
||||
self.stdout.write("Field types list : ")
|
||||
for ftype in EmField.fieldtypes_list():
|
||||
for ftype in ftl:
|
||||
self.stdout.write("\t{0:15} {1}".format(ftype, EmField.get_field_class(ftype).help))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue