Include computation of the norm in models.py.