mongonaut/views.py
def get_initial(self):
        """Used during adding/editing of data."""
        self.query = self.get_queryset()
        mongo_ids = {'mongo_id': [str(x.id) for x in self.query]}
        return mongo_ids
def get_initial(self):
        """Used during adding/editing of data."""
        self.query = self.get_queryset()
        mongo_ids = {'mongo_id': [str(x.id) for x in self.query]}
        return mongo_ids
def get_initial ( self ) : self . query = self . get_queryset ( ) mongo_ids = { 'mongo_id' : [ str ( x . id ) for x in self . query ] } return mongo_ids
Used during adding/editing of data.
Used during adding / editing of data .