I have the following model, which in its attribute name I want to allow compound names or blank spaces, for example Real Madrid
class Team(models.Model):
name = models.CharField(
_('name'),
max_length=30,...
I have the following model with primary_key=True specified
classTeam(models.Model):
name = models.CharField(
max_length=64,
primary_key=True,
)
... other fields
My serializer is the following:
classTeamS...