Skip to content
  • Jeremy Kerr's avatar
    models: Update Person & UserProfile object whenever User is saved · 4bc2c34d
    Jeremy Kerr authored
    
    
    Currently, UserProfiles are only saved on creation of the User object,
    before the first_name and last_name attributes are set. This means that
    we fallback to using the User.username value as the new Person.name.
    
    This change modifies User's post-save signal to always update the Person
    object, both on creation and updates. This means we get the proper name
    appearing on Person instances.
    
    Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
    4bc2c34d