|
@@ -1,6 +1,6 @@
|
1
|
1
|
from django.core.management.base import BaseCommand, CommandError
|
2
|
2
|
from optparse import make_option
|
3
|
|
-from EditorialModel.fields import EmField
|
|
3
|
+import EditorialModel
|
4
|
4
|
|
5
|
5
|
class Command(BaseCommand):
|
6
|
6
|
option_list = BaseCommand.option_list + (
|
|
@@ -13,7 +13,7 @@ class Command(BaseCommand):
|
13
|
13
|
help = 'List all the possible field types'
|
14
|
14
|
|
15
|
15
|
def handle(self, *args, **options):
|
16
|
|
- ftl = EmField.fieldtypes_list()
|
|
16
|
+ ftl = EditorialModel.fields.EmField.fieldtypes_list()
|
17
|
17
|
ftl.sort()
|
18
|
18
|
if options['silent']:
|
19
|
19
|
for ftype in ftl:
|
|
@@ -21,4 +21,4 @@ class Command(BaseCommand):
|
21
|
21
|
else:
|
22
|
22
|
self.stdout.write("Field types list : ")
|
23
|
23
|
for ftype in ftl:
|
24
|
|
- self.stdout.write("\t{0:15} {1}".format(ftype, EmField.get_field_class(ftype).help))
|
|
24
|
+ self.stdout.write("\t{0:15} {1}".format(ftype, EditorialModel.fieldtypes.generic.GenericFieldType.from_name(ftype).help))
|