fixed another SQLFORM.formstyles, thanks Anthony
This commit is contained in:
1 parent
d1838adb14
commit
4fd83f4de5
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1079,7 +1079,7 @@ class SQLFORM(FORM):
|
||||
|
||||
def createform(self, xfields):
|
||||
if isinstance(self.formstyle, basestring):
|
||||
if self.formstyle in self.formstyles:
|
||||
if self.formstyle in SQLFORM.formstyles:
|
||||
self.formstyle = SQLFORM.formstyles[self.formstyle]
|
||||
else:
|
||||
raise RuntimeError, 'formstyle not found'
|
||||
|
||||
Reference in new issue
Block a user