Django-restframework - use the same value on differents fields

I'm building an API using Django-restframework.

class Researches(models.Model):
    research_id = models.BigAutoField(primary_key=True)

I would like to use the same value on two differents fileds, like:

        "research_id": 1,
        "id": 1

Is it possible?

You need to do something like this:

class ResearchesSerializer(
    id = serializers.IntegerField(
        source="research_id", read_only=True
    class Meta:
        model = Researches
        fields = (


for ref:

Back to Top