Answer the question
In order to leave comments, you need to log in
Removing Mongo from view in Django?
There is a model:
class VitrinaByKeys(Document):
word = StringField(verbose_name = u'слово',max_length=64)
case_id = StringField(verbose_name = u'витрина',max_length=64)
meta = {
'indexes' : ['word', 'case_id', ]
}
keyses=VitrinaByKeys.objects.filter(case_id = 'some_id')
keyses.delete()
Answer the question
In order to leave comments, you need to log in
Sorry, everything turned out to be easier, there is such a field as ListField ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question