def get_or_create_permission(codename, name=camel_or_snake_to_title):
user_ct = ContentType.objects.get_for_model(get_user_model())<EOL>return Permission.objects.get_or_create(content_type=user_ct, codename=codename,<EOL>defaults={'<STR_LIT:name>': name(codename) if callable(name) else name})<EOL>
Get a Permission object from a permission name.
@:param codename: permission code name
@:param name: human-readable permissions name (str) or callable that takes codename as
              argument and returns str