def countries(self, *args, **kwargs):
        return super(GeonameManager, self).filter(fcode__in=['PCLI']).filter(*args, **kwargs)
Return primary key value from the model instance
dataset/ETHPy150Open ramusus/django-geonames/geonames/models.py/GeonameManager.countries--crossover with--dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/pymongo/view.py/ModelView.get_pk_value