Don't assume that profiles exist in datagrid code.
Review Request #6111 — Created July 17, 2014 and submitted — Latest diff uploaded
If a new user was created but the associated profile was not, loading the
dashboard would cause an error (because in 1.7.x,User.get_profile()
won't
create the profile). This is already fixed in the 2.0.x series, because we've
completely replacedUser.get_profile()
there.There are numerious other places where the profile is assumed to exist, but
this is the only one that we've encountered in production.
Ran unit tests.
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.
orig
1
2
reviewboard/reviews/datagrids.py |
---|