Django 1.10 / AttributeError: 'list' object has no attribute '_meta'
问题 I got this error: Internal Server Error: /QOP/1/editar/ Traceback (most recent call last): ... opts = instance._meta AttributeError: 'list' object has no attribute '_meta' [25/Nov/2016 19:17:00] "GET /QOP/1/editar/ HTTP/1.1" 500 77572 models.py from django.db import models from smart_selects.db_fields import ChainedForeignKey from django.core.urlresolvers import reverse from modulos.modPessoas.models import Postos # Quadro Orgânico Pessoal class Qop(models.Model): class Meta: ordering = ['qop