class Muestra(models.Model):
departamento_id = models.PositiveIntegerField()
numero = models.PositiveIntegerField()
tipo_prestacion = models.CharField(max_length=45)
entrada = models.CharField(max_length=45)
nro_cert_cadena_custodia = models.CharField(max_length=45, blank=True, null=True)
matriz = models.ForeignKey(Matriz, models.DO_NOTHING)
tipomuestra = ChainedForeignKey(
Tipomuestra,
chained_field="matriz",
chained_model_field="matriz")
Y cuando ejecuto me arroja el siguiente error:
Cual podrá ser el error? Alomejor lo puedo hacer con otro modulo, recibo sugerencias.