BenjjinF / django-fontawesome-5

A utility for using icons in models, forms, and templates.
BSD 2-Clause "Simplified" License
21 stars 18 forks source link

Django 3.0 support - IconField.from_db_value signature update #4

Closed mcclory closed 4 years ago

mcclory commented 4 years ago

The IconField definition contains a definition for from_db_value as follows:

        def from_db_value(self, value, expression, connection, context):

In Django 3.0, this errors out with the error:

TypeError: from_db_value() missing 1 required positional argument: 'context'

Change is pretty quick - will PR in a moment