Código:
Pero cuando hago:class MY_MODEL(models.Model): identifier = models.AutoField(primary_key=True) Timestamp = models.CharField(max_length=30, null=False, db_column='Timestamp') Username = models.CharField(max_length=30, null=False, db_column='Username') Name = models.CharField(max_length=30, null=False, db_column='COTS Name') Version = models.CharField(max_length=30, null=False, db_column='Version')
Código:
Obtengo todos los campos menos el identifier, ¿por qué pasa esto?MY_MODEL.objects.all() MY_MODEL_list = serializers.serialize('python', MY_MODEL.objects.all())
Saludos.