  from django.utils.six.moves import input
  
  
  def _get_permission_codename(action, opts):
      return '%s_%s' % (action, opts.object_name.lower())
  
  
  def _get_all_permissions(opts, ctype):
      """
      Returns (codename, name) for all permissions in the given opts.
 
</s> remove         key = (opts.app_label, opts.object_name.lower())
 </s> add         key = (opts.app_label, opts.model_name) </s> remove from django.core.urlresolvers import reverse
 </s> add  </s> remove         (model._meta.object_name.lower(), model)
 </s> add         (model._meta.model_name, model) </s> remove         response['X-Object-Type'] = "%s.%s" % (model._meta.app_label, model._meta.object_name.lower())
 </s> add         response['X-Object-Type'] = "%s.%s" % (model._meta.app_label, model._meta.model_name)
    return '%s_%s' % (action, opts.model_name)
  from django.utils.six.moves import input
  
  
  def _get_permission_codename(action, opts):
    return '%s_%s' % (action, opts.model_name)
  
  
  def _get_all_permissions(opts, ctype):
      """
      Returns (codename, name) for all permissions in the given opts.
keep keep keep keep replace keep keep keep keep keep
 Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`. 
django/contrib/auth/management/__init__.py