hi im having troubles in django 3.2 with a work arround for composite key's. as my customer request he needs a composite key as primary key not just on unique_together constraint so im wonder if there any way or place to intercept the instance be fore validation and populate the composite key with values from the other fields and save it to the db ej:
class MyModel(models.Model):
foo = models.UUIDField(default=uuid.uuid4,
auto_created=True, editable=False, max_length=36)
bar = models-charfield()
taz = models.charfield()
composite_key = models.charfield(primary_key=True, default = 'foo' + 'taz' + 'foo')
somthing among these lines i cant get pass from the form field validator on django admin site so i really cant test signals or save() method any help wil be apreciated.