• Dan McGee's avatar
    Make user profile a OneToOneField · 82eb9de9
    Dan McGee authored
    We had this set up as a unique ForeignKey before, which adds some
    indirection due to the RelatedManager object being there. By making it a
    OneToOneField, we can get the profile object directly, enforce uniqueness,
    and also use it in select_related() calls to make our profiles page a bit
    more efficient.
    Signed-off-by: default avatarDan McGee <dan@archlinux.org>