Fix issues with null Profile.extra_data field.
Review Request #8293 — Created July 18, 2016 and submitted
Once upon a time, a user's
Profile.extra_datadefaulted toNonerather than an
empty dictionary. We recently introduced code that assumes that the field is
non-None, and we will probably continue to add more and more such code in the
future. This change adds some normalization toUser._get_profileto make sure
that it's notNone.
Ran unit tests. Before the fix, the new test failed. After, it succeeds.
Tool: Pyflakes Processed Files: reviewboard/datagrids/tests.py reviewboard/accounts/models.py Tool: PEP8 Style Checker Processed Files: reviewboard/datagrids/tests.py reviewboard/accounts/models.py