PhoenixAndMachine
PhoenixAndMachine
I don't get this, the error happens when importing models, and it only happens when adding the reverse_delete_rule. Using single quote is OK for unregistered class without reverse_delete_rule. So u...
14 import pdb; pdb.set_trace() 15 class Country(Document): 16 name = StringField(max_length=50, required=True) 17 continents = ListField(ReferenceField(Continent, reverse_delete_rule=PULL)) 18 geo_center = GeoPointField() 19 capital = ReferenceField('City', reverse_delete_rule=NULLIFY) 20 languages = ListField(ReferenceField('Language',...
Well, the problem is wherever I put the classes city or country, there are country field in city pointing to country, and capital field in country pointing to city. Sad...