user_check_token = get_object_or_404(UserActivationKey, activation_key=activation_key)
# if user_profile.key_expires < datetime.datetime.now():
# return render_to_response('adverts/registration_link_expired.html')
user = user_check_token.user
user.is_active = True
user.save()