AttributeError: 'Library' object has no attribute 'assignment_tag'
You may be seeing this error after upgrading to Django 2.0. This is because assignment_tag
was deprecated in Django 1.9, and removed in Django 2.0:
Django 1.4 added the
assignment_tag
helper to ease the creation of template tags that store results in a template variable. Thesimple_tag()
helper has gained this same ability, making theassignment_tag
obsolete. Tags that useassignment_tag
should be updated to usesimple_tag
.