Added support for django-nonrel by allowing to redefine the value of PK

Could've probably used the configuration variable for that, but enables a better control over the code.