Fix setting default avatar service

Review Request #8510 — Created Oct. 30, 2016 and submitted

Information

Review Board
release-3.0.x

Reviewers

When RB was updated to use the new avatar services API, this was
mistakenly updated to look up the avatar service. However, the
clean_avatar_service method does this already, so we are attempting to
lookup an item with its ID equal to the class, which isn't going to
work. This would always fail, so submitting the form would unset the
default avatar service. Reverting this fixes the issue,

Able to save the avatar services admin form and the default service gets
changed correctly.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/admin/forms.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/admin/forms.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
  1. Ship It!
  2. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.0.x (3b13087)