(self, partition_value, **kwargs)
return self.partitioned_query(partition_value).get(**kwargs)
Get a partioned model from it's database

        If the lookup should be performed using a different lookup value then it
        should be supplied as a keyword argument:

            model.objects.partitioned_get(partition_value, other_field=value)

        is equivalent to:

            db = get_db_alias_for_partitioned_doc(partition_value)
            model.objects.using(db).get(other_field=value)

        :param partition_value: The value that is used to partition the model;
                                this value will be used to select the database
Get a partioned model from it's database
Get a partioned model from it s database
def partitioned_get(self, partition_value, **kwargs):
        """Get a partioned model from it's database

        If the lookup should be performed using a different lookup value then it
        should be supplied as a keyword argument:

            model.objects.partitioned_get(partition_value, other_field=value)

        is equivalent to:

            db = get_db_alias_for_partitioned_doc(partition_value)
            model.objects.using(db).get(other_field=value)

        :param partition_value: The value that is used to partition the model;
                                this value will be used to select the database
        """
        if not kwargs:
            kwargs = {
                self.model.partition_attr: partition_value
            }
        return self.partitioned_query(partition_value).get(**kwargs)
def partitioned_get ( self , partition_value , * * kwargs ) : if not kwargs : kwargs = { self . model . partition_attr : partition_value } return self . partitioned_query ( partition_value ) . get ( * * kwargs )