* status: new => closed
* type: Bug => New feature
* resolution: => duplicate
Comment:
You cannot add a field based on an annotation to the model as
`models.IntegerField()`. As far using annotations in `list_display` there
are open tickets for that so marking as a duplicate, see #14336 and
#27229.
> What is the correct way to add a computed field to a model in Admin
land?
The answer is in the error message: ''"which is not a **callable**, an
**attribute of 'MyPapersAdmin'**, or an **attribute or method on
'literature.MyPapers'**."''
--
Ticket URL: <https://code.djangoproject.com/ticket/34354#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.