1
0
Fork 0
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:
Yann 2015-09-17 17:14:20 +02:00
commit d35fa8c56e
3 changed files with 9 additions and 9 deletions

View file

@ -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))