old_contents: # coding: utf-8
  
  from django.core.cache import cache
  
  
  def get_user_lock_cache_key(user):
      return 'dossiers__export_en_cours__%s' % user.username
  
  
  def is_user_locked(user):
      return cache.get(get_user_lock_cache_key(user), False)
  
  
  def lock_user(user):
      cache.set(get_user_lock_cache_key(user), True)
  
  
  def unlock_user(user):
      cache.set(get_user_lock_cache_key(user), False)
  
new_contents: # coding: utf-8
  
  from __future__ import unicode_literals
  from django.core.cache import cache
  
  
  def get_user_lock_cache_key(user):
      return 'dossiers__export_en_cours__%s' % user.username
  
  
  def is_user_locked(user):
      return cache.get(get_user_lock_cache_key(user), False)
  
  
  def lock_user(user):
      cache.set(get_user_lock_cache_key(user), True)
  
  
  def unlock_user(user):
      cache.set(get_user_lock_cache_key(user), False)
  
subject: Corrige un import oublié.