We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValidationError at /mongonaut/lawn/CharacterInfo/583a5fcdf971d92c77b5989a/edit/ ValidationError (CharacterInfo:583a5fcdf971d92c77b5989a) (Only dictionaries may be used in a DictField: ['groove'])
ValidationError at /mongonaut/lawn/CharacterInfo/583a5fcdf971d92c77b5989a/edit/
ValidationError (CharacterInfo:583a5fcdf971d92c77b5989a) (Only dictionaries may be used in a DictField: ['groove'])
This happens with the following models:
`class LocalizedCharField(EmbeddedDocument): EN = StringField(max_length=128,required=True) JP = StringField(max_length=128)
class LocalizedStringField(EmbeddedDocument): EN = StringField() JP = StringField()
class CharacterInfo(Document): charName = StringField(max_length=128, required=True) displayName = EmbeddedDocumentField(LocalizedCharField) nationality = EmbeddedDocumentField(LocalizedCharField) game = EmbeddedDocumentField(LocalizedCharField) system = EmbeddedDocumentField(LocalizedCharField) voice = EmbeddedDocumentField(LocalizedCharField) graphic = EmbeddedDocumentField(LocalizedCharField) introduction = EmbeddedDocumentField(LocalizedStringField) defaultPalIndices = StringField(max_length=128) groove = DictField()
def __unicode__(self): return self.charName class Meta(object): verbose_name = "Character" verbose_name_plural = "Characters"
`
And it doesn't matter if I use the string {"groove": { "movement": 1, "justdefend": 1, "parry": 1, "scancel": 1, "counter_attack": 1, "counter_movement": 1, "small_jump": 1, "safe_fall": 1, "air_guard": 1, "evasive": 1, "gauge": 1 }}
{"groove": { "movement": 1, "justdefend": 1, "parry": 1, "scancel": 1, "counter_attack": 1, "counter_movement": 1, "small_jump": 1, "safe_fall": 1, "air_guard": 1, "evasive": 1, "gauge": 1 }}
or
"groove": { "movement": 1, "justdefend": 1, "parry": 1, "scancel": 1, "counter_attack": 1, "counter_movement": 1, "small_jump": 1, "safe_fall": 1, "air_guard": 1, "evasive": 1, "gauge": 1 }
or even
{ "movement": 1, "justdefend": 1, "parry": 1, "scancel": 1, "counter_attack": 1, "counter_movement": 1, "small_jump": 1, "safe_fall": 1, "air_guard": 1, "evasive": 1, "gauge": 1 }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This happens with the following models:
`class LocalizedCharField(EmbeddedDocument):
EN = StringField(max_length=128,required=True)
JP = StringField(max_length=128)
class LocalizedStringField(EmbeddedDocument):
EN = StringField()
JP = StringField()
class CharacterInfo(Document):
charName = StringField(max_length=128, required=True)
displayName = EmbeddedDocumentField(LocalizedCharField)
nationality = EmbeddedDocumentField(LocalizedCharField)
game = EmbeddedDocumentField(LocalizedCharField)
system = EmbeddedDocumentField(LocalizedCharField)
voice = EmbeddedDocumentField(LocalizedCharField)
graphic = EmbeddedDocumentField(LocalizedCharField)
introduction = EmbeddedDocumentField(LocalizedStringField)
defaultPalIndices = StringField(max_length=128)
groove = DictField()
`
And it doesn't matter if I use the string
{"groove": { "movement": 1, "justdefend": 1, "parry": 1, "scancel": 1, "counter_attack": 1, "counter_movement": 1, "small_jump": 1, "safe_fall": 1, "air_guard": 1, "evasive": 1, "gauge": 1 }}
or
"groove": { "movement": 1, "justdefend": 1, "parry": 1, "scancel": 1, "counter_attack": 1, "counter_movement": 1, "small_jump": 1, "safe_fall": 1, "air_guard": 1, "evasive": 1, "gauge": 1 }
or even
{ "movement": 1, "justdefend": 1, "parry": 1, "scancel": 1, "counter_attack": 1, "counter_movement": 1, "small_jump": 1, "safe_fall": 1, "air_guard": 1, "evasive": 1, "gauge": 1 }
The text was updated successfully, but these errors were encountered: