1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-14 18:09:17 +01:00

Code cleaning

This commit is contained in:
Roland Haroutiounian 2015-09-16 15:26:47 +02:00
commit a318ef2dca

View file

@ -67,5 +67,5 @@ class EmField(EmComponent):
def to_django(self):
if self.fieldtype == 'boolean' and ('nullable' in self.options and self.options['nullable'] == 1):
return models.NullBooleanField(**self.options)
return self.fieldtypes[self.fieldtype](**self.options)