coleifer/wtf-peewee — Issue #4: TypeError: 'FormMeta' object is not iterable
Author: andmart
Created: 2012-02-24 19:02:46+00:00
State: open

Hi,

I'm getting this error when executing the code extracted from README ( https://github.com/coleifer/wtf-peewee#readme)

####### begin #####

from peewee import *
from wtfpeewee.orm import model_form

class Blog(Model):
name = CharField()

def __unicode__(self):
return self.name

class Entry(Model):
blog = ForeignKeyField(Blog)
title = CharField()
body = TextField()

def __unicode__(self):
return self.title

# create a form class for use with the Entry model
EntryForm = model_form(Entry)

print [field.name for field in EntryForm]

######## End ######

Version file coleifer-wtf-peewee-0.1.3-0-g8c55e8b