code
string | repo_name
string | path
string | language
string | license
string | size
int64 |
---|---|---|---|---|---|
from django.contrib import auth
from django.contrib.auth import load_backend
from django.contrib.auth.backends import RemoteUserBackend
from django.core.exceptions import ImproperlyConfigured
from django.utils.deprecation import MiddlewareMixin
from django.utils.functional import SimpleLazyObject
def get_user(request):
if not hasattr(request, "_cached_user"):
request._cached_user = auth.get_user(request)
return request._cached_user
class AuthenticationMiddleware(MiddlewareMixin):
def process_request(self, request):
if not hasattr(request, "session"):
raise ImproperlyConfigured(
"The Django authentication middleware requires session "
"middleware to be installed. Edit your MIDDLEWARE setting to "
"insert "
"'django.contrib.sessions.middleware.SessionMiddleware' before "
"'django.contrib.auth.middleware.AuthenticationMiddleware'."
)
request.user = SimpleLazyObject(lambda: get_user(request))
class RemoteUserMiddleware(MiddlewareMixin):
"""
Middleware for utilizing web-server-provided authentication.
If request.user is not authenticated, then this middleware attempts to
authenticate the username passed in the ``REMOTE_USER`` request header.
If authentication is successful, the user is automatically logged in to
persist the user in the session.
The header used is configurable and defaults to ``REMOTE_USER``. Subclass
this class and change the ``header`` attribute if you need to use a
different header.
"""
# Name of request header to grab username from. This will be the key as
# used in the request.META dictionary, i.e. the normalization of headers to
# all uppercase and the addition of "HTTP_" prefix apply.
header = "REMOTE_USER"
force_logout_if_no_header = True
def process_request(self, request):
# AuthenticationMiddleware is required so that request.user exists.
if not hasattr(request, "user"):
raise ImproperlyConfigured(
"The Django remote user auth middleware requires the"
" authentication middleware to be installed. Edit your"
" MIDDLEWARE setting to insert"
" 'django.contrib.auth.middleware.AuthenticationMiddleware'"
" before the RemoteUserMiddleware class."
)
try:
username = request.META[self.header]
except KeyError:
# If specified header doesn't exist then remove any existing
# authenticated remote-user, or return (leaving request.user set to
# AnonymousUser by the AuthenticationMiddleware).
if self.force_logout_if_no_header and request.user.is_authenticated:
self._remove_invalid_user(request)
return
# If the user is already authenticated and that user is the user we are
# getting passed in the headers, then the correct user is already
# persisted in the session and we don't need to continue.
if request.user.is_authenticated:
if request.user.get_username() == self.clean_username(username, request):
return
else:
# An authenticated user is associated with the request, but
# it does not match the authorized user in the header.
self._remove_invalid_user(request)
# We are seeing this user for the first time in this session, attempt
# to authenticate the user.
user = auth.authenticate(request, remote_user=username)
if user:
# User is valid. Set request.user and persist user in the session
# by logging the user in.
request.user = user
auth.login(request, user)
def clean_username(self, username, request):
"""
Allow the backend to clean the username, if the backend defines a
clean_username method.
"""
backend_str = request.session[auth.BACKEND_SESSION_KEY]
backend = auth.load_backend(backend_str)
try:
username = backend.clean_username(username)
except AttributeError: # Backend has no clean_username method.
pass
return username
def _remove_invalid_user(self, request):
"""
Remove the current authenticated user in the request which is invalid
but only if the user is authenticated via the RemoteUserBackend.
"""
try:
stored_backend = load_backend(
request.session.get(auth.BACKEND_SESSION_KEY, "")
)
except ImportError:
# backend failed to load
auth.logout(request)
else:
if isinstance(stored_backend, RemoteUserBackend):
auth.logout(request)
class PersistentRemoteUserMiddleware(RemoteUserMiddleware):
"""
Middleware for web-server provided authentication on logon pages.
Like RemoteUserMiddleware but keeps the user authenticated even if
the header (``REMOTE_USER``) is not found in the request. Useful
for setups when the external authentication via ``REMOTE_USER``
is only expected to happen on some "logon" URL and the rest of
the application wants to use Django's authentication mechanism.
"""
force_logout_if_no_header = False
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/middleware.py
|
Python
|
mit
| 5,431 |
import django.contrib.auth.models
from django.contrib.auth import validators
from django.db import migrations, models
from django.utils import timezone
class Migration(migrations.Migration):
dependencies = [
("contenttypes", "__first__"),
]
operations = [
migrations.CreateModel(
name="Permission",
fields=[
(
"id",
models.AutoField(
verbose_name="ID",
serialize=False,
auto_created=True,
primary_key=True,
),
),
("name", models.CharField(max_length=50, verbose_name="name")),
(
"content_type",
models.ForeignKey(
to="contenttypes.ContentType",
on_delete=models.CASCADE,
verbose_name="content type",
),
),
("codename", models.CharField(max_length=100, verbose_name="codename")),
],
options={
"ordering": [
"content_type__app_label",
"content_type__model",
"codename",
],
"unique_together": {("content_type", "codename")},
"verbose_name": "permission",
"verbose_name_plural": "permissions",
},
managers=[
("objects", django.contrib.auth.models.PermissionManager()),
],
),
migrations.CreateModel(
name="Group",
fields=[
(
"id",
models.AutoField(
verbose_name="ID",
serialize=False,
auto_created=True,
primary_key=True,
),
),
(
"name",
models.CharField(unique=True, max_length=80, verbose_name="name"),
),
(
"permissions",
models.ManyToManyField(
to="auth.Permission", verbose_name="permissions", blank=True
),
),
],
options={
"verbose_name": "group",
"verbose_name_plural": "groups",
},
managers=[
("objects", django.contrib.auth.models.GroupManager()),
],
),
migrations.CreateModel(
name="User",
fields=[
(
"id",
models.AutoField(
verbose_name="ID",
serialize=False,
auto_created=True,
primary_key=True,
),
),
("password", models.CharField(max_length=128, verbose_name="password")),
(
"last_login",
models.DateTimeField(
default=timezone.now, verbose_name="last login"
),
),
(
"is_superuser",
models.BooleanField(
default=False,
help_text=(
"Designates that this user has all permissions without "
"explicitly assigning them."
),
verbose_name="superuser status",
),
),
(
"username",
models.CharField(
help_text=(
"Required. 30 characters or fewer. Letters, digits and "
"@/./+/-/_ only."
),
unique=True,
max_length=30,
verbose_name="username",
validators=[validators.UnicodeUsernameValidator()],
),
),
(
"first_name",
models.CharField(
max_length=30, verbose_name="first name", blank=True
),
),
(
"last_name",
models.CharField(
max_length=30, verbose_name="last name", blank=True
),
),
(
"email",
models.EmailField(
max_length=75, verbose_name="email address", blank=True
),
),
(
"is_staff",
models.BooleanField(
default=False,
help_text=(
"Designates whether the user can log into this admin site."
),
verbose_name="staff status",
),
),
(
"is_active",
models.BooleanField(
default=True,
verbose_name="active",
help_text=(
"Designates whether this user should be treated as active. "
"Unselect this instead of deleting accounts."
),
),
),
(
"date_joined",
models.DateTimeField(
default=timezone.now, verbose_name="date joined"
),
),
(
"groups",
models.ManyToManyField(
to="auth.Group",
verbose_name="groups",
blank=True,
related_name="user_set",
related_query_name="user",
help_text=(
"The groups this user belongs to. A user will get all "
"permissions granted to each of their groups."
),
),
),
(
"user_permissions",
models.ManyToManyField(
to="auth.Permission",
verbose_name="user permissions",
blank=True,
help_text="Specific permissions for this user.",
related_name="user_set",
related_query_name="user",
),
),
],
options={
"swappable": "AUTH_USER_MODEL",
"verbose_name": "user",
"verbose_name_plural": "users",
},
managers=[
("objects", django.contrib.auth.models.UserManager()),
],
),
]
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/migrations/0001_initial.py
|
Python
|
mit
| 7,281 |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("auth", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="permission",
name="name",
field=models.CharField(max_length=255, verbose_name="name"),
),
]
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/migrations/0002_alter_permission_name_max_length.py
|
Python
|
mit
| 346 |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("auth", "0002_alter_permission_name_max_length"),
]
operations = [
migrations.AlterField(
model_name="user",
name="email",
field=models.EmailField(
max_length=254, verbose_name="email address", blank=True
),
),
]
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/migrations/0003_alter_user_email_max_length.py
|
Python
|
mit
| 418 |
from django.contrib.auth import validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("auth", "0003_alter_user_email_max_length"),
]
# No database changes; modifies validators and error_messages (#13147).
operations = [
migrations.AlterField(
model_name="user",
name="username",
field=models.CharField(
error_messages={"unique": "A user with that username already exists."},
max_length=30,
validators=[validators.UnicodeUsernameValidator()],
help_text=(
"Required. 30 characters or fewer. Letters, digits and @/./+/-/_ "
"only."
),
unique=True,
verbose_name="username",
),
),
]
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/migrations/0004_alter_user_username_opts.py
|
Python
|
mit
| 880 |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("auth", "0004_alter_user_username_opts"),
]
operations = [
migrations.AlterField(
model_name="user",
name="last_login",
field=models.DateTimeField(
null=True, verbose_name="last login", blank=True
),
),
]
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/migrations/0005_alter_user_last_login_null.py
|
Python
|
mit
| 410 |
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("auth", "0005_alter_user_last_login_null"),
("contenttypes", "0002_remove_content_type_name"),
]
operations = [
# Ensure the contenttypes migration is applied before sending
# post_migrate signals (which create ContentTypes).
]
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/migrations/0006_require_contenttypes_0002.py
|
Python
|
mit
| 369 |
from django.contrib.auth import validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("auth", "0006_require_contenttypes_0002"),
]
operations = [
migrations.AlterField(
model_name="user",
name="username",
field=models.CharField(
error_messages={"unique": "A user with that username already exists."},
help_text=(
"Required. 30 characters or fewer. Letters, digits and @/./+/-/_ "
"only."
),
max_length=30,
unique=True,
validators=[validators.UnicodeUsernameValidator()],
verbose_name="username",
),
),
]
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/migrations/0007_alter_validators_add_error_messages.py
|
Python
|
mit
| 802 |
from django.contrib.auth import validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("auth", "0007_alter_validators_add_error_messages"),
]
operations = [
migrations.AlterField(
model_name="user",
name="username",
field=models.CharField(
error_messages={"unique": "A user with that username already exists."},
help_text=(
"Required. 150 characters or fewer. Letters, digits and @/./+/-/_ "
"only."
),
max_length=150,
unique=True,
validators=[validators.UnicodeUsernameValidator()],
verbose_name="username",
),
),
]
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/migrations/0008_alter_user_username_max_length.py
|
Python
|
mit
| 814 |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("auth", "0008_alter_user_username_max_length"),
]
operations = [
migrations.AlterField(
model_name="user",
name="last_name",
field=models.CharField(
blank=True, max_length=150, verbose_name="last name"
),
),
]
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/migrations/0009_alter_user_last_name_max_length.py
|
Python
|
mit
| 415 |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("auth", "0009_alter_user_last_name_max_length"),
]
operations = [
migrations.AlterField(
model_name="group",
name="name",
field=models.CharField(max_length=150, unique=True, verbose_name="name"),
),
]
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/migrations/0010_alter_group_name_max_length.py
|
Python
|
mit
| 378 |
import sys
from django.core.management.color import color_style
from django.db import IntegrityError, migrations, transaction
from django.db.models import Q
WARNING = """
A problem arose migrating proxy model permissions for {old} to {new}.
Permission(s) for {new} already existed.
Codenames Q: {query}
Ensure to audit ALL permissions for {old} and {new}.
"""
def update_proxy_model_permissions(apps, schema_editor, reverse=False):
"""
Update the content_type of proxy model permissions to use the ContentType
of the proxy model.
"""
style = color_style()
Permission = apps.get_model("auth", "Permission")
ContentType = apps.get_model("contenttypes", "ContentType")
alias = schema_editor.connection.alias
for Model in apps.get_models():
opts = Model._meta
if not opts.proxy:
continue
proxy_default_permissions_codenames = [
"%s_%s" % (action, opts.model_name) for action in opts.default_permissions
]
permissions_query = Q(codename__in=proxy_default_permissions_codenames)
for codename, name in opts.permissions:
permissions_query |= Q(codename=codename, name=name)
content_type_manager = ContentType.objects.db_manager(alias)
concrete_content_type = content_type_manager.get_for_model(
Model, for_concrete_model=True
)
proxy_content_type = content_type_manager.get_for_model(
Model, for_concrete_model=False
)
old_content_type = proxy_content_type if reverse else concrete_content_type
new_content_type = concrete_content_type if reverse else proxy_content_type
try:
with transaction.atomic(using=alias):
Permission.objects.using(alias).filter(
permissions_query,
content_type=old_content_type,
).update(content_type=new_content_type)
except IntegrityError:
old = "{}_{}".format(old_content_type.app_label, old_content_type.model)
new = "{}_{}".format(new_content_type.app_label, new_content_type.model)
sys.stdout.write(
style.WARNING(WARNING.format(old=old, new=new, query=permissions_query))
)
def revert_proxy_model_permissions(apps, schema_editor):
"""
Update the content_type of proxy model permissions to use the ContentType
of the concrete model.
"""
update_proxy_model_permissions(apps, schema_editor, reverse=True)
class Migration(migrations.Migration):
dependencies = [
("auth", "0010_alter_group_name_max_length"),
("contenttypes", "0002_remove_content_type_name"),
]
operations = [
migrations.RunPython(
update_proxy_model_permissions, revert_proxy_model_permissions
),
]
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/migrations/0011_update_proxy_permissions.py
|
Python
|
mit
| 2,860 |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("auth", "0011_update_proxy_permissions"),
]
operations = [
migrations.AlterField(
model_name="user",
name="first_name",
field=models.CharField(
blank=True, max_length=150, verbose_name="first name"
),
),
]
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/migrations/0012_alter_user_first_name_max_length.py
|
Python
|
mit
| 411 |
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/migrations/__init__.py
|
Python
|
mit
| 0 |
|
from urllib.parse import urlparse
from django.conf import settings
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.contrib.auth.views import redirect_to_login
from django.core.exceptions import ImproperlyConfigured, PermissionDenied
from django.shortcuts import resolve_url
class AccessMixin:
"""
Abstract CBV mixin that gives access mixins the same customizable
functionality.
"""
login_url = None
permission_denied_message = ""
raise_exception = False
redirect_field_name = REDIRECT_FIELD_NAME
def get_login_url(self):
"""
Override this method to override the login_url attribute.
"""
login_url = self.login_url or settings.LOGIN_URL
if not login_url:
raise ImproperlyConfigured(
f"{self.__class__.__name__} is missing the login_url attribute. Define "
f"{self.__class__.__name__}.login_url, settings.LOGIN_URL, or override "
f"{self.__class__.__name__}.get_login_url()."
)
return str(login_url)
def get_permission_denied_message(self):
"""
Override this method to override the permission_denied_message attribute.
"""
return self.permission_denied_message
def get_redirect_field_name(self):
"""
Override this method to override the redirect_field_name attribute.
"""
return self.redirect_field_name
def handle_no_permission(self):
if self.raise_exception or self.request.user.is_authenticated:
raise PermissionDenied(self.get_permission_denied_message())
path = self.request.build_absolute_uri()
resolved_login_url = resolve_url(self.get_login_url())
# If the login url is the same scheme and net location then use the
# path as the "next" url.
login_scheme, login_netloc = urlparse(resolved_login_url)[:2]
current_scheme, current_netloc = urlparse(path)[:2]
if (not login_scheme or login_scheme == current_scheme) and (
not login_netloc or login_netloc == current_netloc
):
path = self.request.get_full_path()
return redirect_to_login(
path,
resolved_login_url,
self.get_redirect_field_name(),
)
class LoginRequiredMixin(AccessMixin):
"""Verify that the current user is authenticated."""
def dispatch(self, request, *args, **kwargs):
if not request.user.is_authenticated:
return self.handle_no_permission()
return super().dispatch(request, *args, **kwargs)
class PermissionRequiredMixin(AccessMixin):
"""Verify that the current user has all specified permissions."""
permission_required = None
def get_permission_required(self):
"""
Override this method to override the permission_required attribute.
Must return an iterable.
"""
if self.permission_required is None:
raise ImproperlyConfigured(
f"{self.__class__.__name__} is missing the "
f"permission_required attribute. Define "
f"{self.__class__.__name__}.permission_required, or override "
f"{self.__class__.__name__}.get_permission_required()."
)
if isinstance(self.permission_required, str):
perms = (self.permission_required,)
else:
perms = self.permission_required
return perms
def has_permission(self):
"""
Override this method to customize the way permissions are checked.
"""
perms = self.get_permission_required()
return self.request.user.has_perms(perms)
def dispatch(self, request, *args, **kwargs):
if not self.has_permission():
return self.handle_no_permission()
return super().dispatch(request, *args, **kwargs)
class UserPassesTestMixin(AccessMixin):
"""
Deny a request with a permission error if the test_func() method returns
False.
"""
def test_func(self):
raise NotImplementedError(
"{} is missing the implementation of the test_func() method.".format(
self.__class__.__name__
)
)
def get_test_func(self):
"""
Override this method to use a different test_func method.
"""
return self.test_func
def dispatch(self, request, *args, **kwargs):
user_test_result = self.get_test_func()()
if not user_test_result:
return self.handle_no_permission()
return super().dispatch(request, *args, **kwargs)
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/mixins.py
|
Python
|
mit
| 4,652 |
from django.apps import apps
from django.contrib import auth
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
from django.contrib.auth.hashers import make_password
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import PermissionDenied
from django.core.mail import send_mail
from django.db import models
from django.db.models.manager import EmptyManager
from django.utils import timezone
from django.utils.itercompat import is_iterable
from django.utils.translation import gettext_lazy as _
from .validators import UnicodeUsernameValidator
def update_last_login(sender, user, **kwargs):
"""
A signal receiver which updates the last_login date for
the user logging in.
"""
user.last_login = timezone.now()
user.save(update_fields=["last_login"])
class PermissionManager(models.Manager):
use_in_migrations = True
def get_by_natural_key(self, codename, app_label, model):
return self.get(
codename=codename,
content_type=ContentType.objects.db_manager(self.db).get_by_natural_key(
app_label, model
),
)
class Permission(models.Model):
"""
The permissions system provides a way to assign permissions to specific
users and groups of users.
The permission system is used by the Django admin site, but may also be
useful in your own code. The Django admin site uses permissions as follows:
- The "add" permission limits the user's ability to view the "add" form
and add an object.
- The "change" permission limits a user's ability to view the change
list, view the "change" form and change an object.
- The "delete" permission limits the ability to delete an object.
- The "view" permission limits the ability to view an object.
Permissions are set globally per type of object, not per specific object
instance. It is possible to say "Mary may change news stories," but it's
not currently possible to say "Mary may change news stories, but only the
ones she created herself" or "Mary may only change news stories that have a
certain status or publication date."
The permissions listed above are automatically created for each model.
"""
name = models.CharField(_("name"), max_length=255)
content_type = models.ForeignKey(
ContentType,
models.CASCADE,
verbose_name=_("content type"),
)
codename = models.CharField(_("codename"), max_length=100)
objects = PermissionManager()
class Meta:
verbose_name = _("permission")
verbose_name_plural = _("permissions")
unique_together = [["content_type", "codename"]]
ordering = ["content_type__app_label", "content_type__model", "codename"]
def __str__(self):
return "%s | %s" % (self.content_type, self.name)
def natural_key(self):
return (self.codename,) + self.content_type.natural_key()
natural_key.dependencies = ["contenttypes.contenttype"]
class GroupManager(models.Manager):
"""
The manager for the auth's Group model.
"""
use_in_migrations = True
def get_by_natural_key(self, name):
return self.get(name=name)
class Group(models.Model):
"""
Groups are a generic way of categorizing users to apply permissions, or
some other label, to those users. A user can belong to any number of
groups.
A user in a group automatically has all the permissions granted to that
group. For example, if the group 'Site editors' has the permission
can_edit_home_page, any user in that group will have that permission.
Beyond permissions, groups are a convenient way to categorize users to
apply some label, or extended functionality, to them. For example, you
could create a group 'Special users', and you could write code that would
do special things to those users -- such as giving them access to a
members-only portion of your site, or sending them members-only email
messages.
"""
name = models.CharField(_("name"), max_length=150, unique=True)
permissions = models.ManyToManyField(
Permission,
verbose_name=_("permissions"),
blank=True,
)
objects = GroupManager()
class Meta:
verbose_name = _("group")
verbose_name_plural = _("groups")
def __str__(self):
return self.name
def natural_key(self):
return (self.name,)
class UserManager(BaseUserManager):
use_in_migrations = True
def _create_user(self, username, email, password, **extra_fields):
"""
Create and save a user with the given username, email, and password.
"""
if not username:
raise ValueError("The given username must be set")
email = self.normalize_email(email)
# Lookup the real model class from the global app registry so this
# manager method can be used in migrations. This is fine because
# managers are by definition working on the real model.
GlobalUserModel = apps.get_model(
self.model._meta.app_label, self.model._meta.object_name
)
username = GlobalUserModel.normalize_username(username)
user = self.model(username=username, email=email, **extra_fields)
user.password = make_password(password)
user.save(using=self._db)
return user
def create_user(self, username, email=None, password=None, **extra_fields):
extra_fields.setdefault("is_staff", False)
extra_fields.setdefault("is_superuser", False)
return self._create_user(username, email, password, **extra_fields)
def create_superuser(self, username, email=None, password=None, **extra_fields):
extra_fields.setdefault("is_staff", True)
extra_fields.setdefault("is_superuser", True)
if extra_fields.get("is_staff") is not True:
raise ValueError("Superuser must have is_staff=True.")
if extra_fields.get("is_superuser") is not True:
raise ValueError("Superuser must have is_superuser=True.")
return self._create_user(username, email, password, **extra_fields)
def with_perm(
self, perm, is_active=True, include_superusers=True, backend=None, obj=None
):
if backend is None:
backends = auth._get_backends(return_tuples=True)
if len(backends) == 1:
backend, _ = backends[0]
else:
raise ValueError(
"You have multiple authentication backends configured and "
"therefore must provide the `backend` argument."
)
elif not isinstance(backend, str):
raise TypeError(
"backend must be a dotted import path string (got %r)." % backend
)
else:
backend = auth.load_backend(backend)
if hasattr(backend, "with_perm"):
return backend.with_perm(
perm,
is_active=is_active,
include_superusers=include_superusers,
obj=obj,
)
return self.none()
# A few helper functions for common logic between User and AnonymousUser.
def _user_get_permissions(user, obj, from_name):
permissions = set()
name = "get_%s_permissions" % from_name
for backend in auth.get_backends():
if hasattr(backend, name):
permissions.update(getattr(backend, name)(user, obj))
return permissions
def _user_has_perm(user, perm, obj):
"""
A backend can raise `PermissionDenied` to short-circuit permission checking.
"""
for backend in auth.get_backends():
if not hasattr(backend, "has_perm"):
continue
try:
if backend.has_perm(user, perm, obj):
return True
except PermissionDenied:
return False
return False
def _user_has_module_perms(user, app_label):
"""
A backend can raise `PermissionDenied` to short-circuit permission checking.
"""
for backend in auth.get_backends():
if not hasattr(backend, "has_module_perms"):
continue
try:
if backend.has_module_perms(user, app_label):
return True
except PermissionDenied:
return False
return False
class PermissionsMixin(models.Model):
"""
Add the fields and methods necessary to support the Group and Permission
models using the ModelBackend.
"""
is_superuser = models.BooleanField(
_("superuser status"),
default=False,
help_text=_(
"Designates that this user has all permissions without "
"explicitly assigning them."
),
)
groups = models.ManyToManyField(
Group,
verbose_name=_("groups"),
blank=True,
help_text=_(
"The groups this user belongs to. A user will get all permissions "
"granted to each of their groups."
),
related_name="user_set",
related_query_name="user",
)
user_permissions = models.ManyToManyField(
Permission,
verbose_name=_("user permissions"),
blank=True,
help_text=_("Specific permissions for this user."),
related_name="user_set",
related_query_name="user",
)
class Meta:
abstract = True
def get_user_permissions(self, obj=None):
"""
Return a list of permission strings that this user has directly.
Query all available auth backends. If an object is passed in,
return only permissions matching this object.
"""
return _user_get_permissions(self, obj, "user")
def get_group_permissions(self, obj=None):
"""
Return a list of permission strings that this user has through their
groups. Query all available auth backends. If an object is passed in,
return only permissions matching this object.
"""
return _user_get_permissions(self, obj, "group")
def get_all_permissions(self, obj=None):
return _user_get_permissions(self, obj, "all")
def has_perm(self, perm, obj=None):
"""
Return True if the user has the specified permission. Query all
available auth backends, but return immediately if any backend returns
True. Thus, a user who has permission from a single auth backend is
assumed to have permission in general. If an object is provided, check
permissions for that object.
"""
# Active superusers have all permissions.
if self.is_active and self.is_superuser:
return True
# Otherwise we need to check the backends.
return _user_has_perm(self, perm, obj)
def has_perms(self, perm_list, obj=None):
"""
Return True if the user has each of the specified permissions. If
object is passed, check if the user has all required perms for it.
"""
if not is_iterable(perm_list) or isinstance(perm_list, str):
raise ValueError("perm_list must be an iterable of permissions.")
return all(self.has_perm(perm, obj) for perm in perm_list)
def has_module_perms(self, app_label):
"""
Return True if the user has any permissions in the given app label.
Use similar logic as has_perm(), above.
"""
# Active superusers have all permissions.
if self.is_active and self.is_superuser:
return True
return _user_has_module_perms(self, app_label)
class AbstractUser(AbstractBaseUser, PermissionsMixin):
"""
An abstract base class implementing a fully featured User model with
admin-compliant permissions.
Username and password are required. Other fields are optional.
"""
username_validator = UnicodeUsernameValidator()
username = models.CharField(
_("username"),
max_length=150,
unique=True,
help_text=_(
"Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only."
),
validators=[username_validator],
error_messages={
"unique": _("A user with that username already exists."),
},
)
first_name = models.CharField(_("first name"), max_length=150, blank=True)
last_name = models.CharField(_("last name"), max_length=150, blank=True)
email = models.EmailField(_("email address"), blank=True)
is_staff = models.BooleanField(
_("staff status"),
default=False,
help_text=_("Designates whether the user can log into this admin site."),
)
is_active = models.BooleanField(
_("active"),
default=True,
help_text=_(
"Designates whether this user should be treated as active. "
"Unselect this instead of deleting accounts."
),
)
date_joined = models.DateTimeField(_("date joined"), default=timezone.now)
objects = UserManager()
EMAIL_FIELD = "email"
USERNAME_FIELD = "username"
REQUIRED_FIELDS = ["email"]
class Meta:
verbose_name = _("user")
verbose_name_plural = _("users")
abstract = True
def clean(self):
super().clean()
self.email = self.__class__.objects.normalize_email(self.email)
def get_full_name(self):
"""
Return the first_name plus the last_name, with a space in between.
"""
full_name = "%s %s" % (self.first_name, self.last_name)
return full_name.strip()
def get_short_name(self):
"""Return the short name for the user."""
return self.first_name
def email_user(self, subject, message, from_email=None, **kwargs):
"""Send an email to this user."""
send_mail(subject, message, from_email, [self.email], **kwargs)
class User(AbstractUser):
"""
Users within the Django authentication system are represented by this
model.
Username and password are required. Other fields are optional.
"""
class Meta(AbstractUser.Meta):
swappable = "AUTH_USER_MODEL"
class AnonymousUser:
id = None
pk = None
username = ""
is_staff = False
is_active = False
is_superuser = False
_groups = EmptyManager(Group)
_user_permissions = EmptyManager(Permission)
def __str__(self):
return "AnonymousUser"
def __eq__(self, other):
return isinstance(other, self.__class__)
def __hash__(self):
return 1 # instances always return the same hash value
def __int__(self):
raise TypeError(
"Cannot cast AnonymousUser to int. Are you trying to use it in place of "
"User?"
)
def save(self):
raise NotImplementedError(
"Django doesn't provide a DB representation for AnonymousUser."
)
def delete(self):
raise NotImplementedError(
"Django doesn't provide a DB representation for AnonymousUser."
)
def set_password(self, raw_password):
raise NotImplementedError(
"Django doesn't provide a DB representation for AnonymousUser."
)
def check_password(self, raw_password):
raise NotImplementedError(
"Django doesn't provide a DB representation for AnonymousUser."
)
@property
def groups(self):
return self._groups
@property
def user_permissions(self):
return self._user_permissions
def get_user_permissions(self, obj=None):
return _user_get_permissions(self, obj, "user")
def get_group_permissions(self, obj=None):
return set()
def get_all_permissions(self, obj=None):
return _user_get_permissions(self, obj, "all")
def has_perm(self, perm, obj=None):
return _user_has_perm(self, perm, obj=obj)
def has_perms(self, perm_list, obj=None):
if not is_iterable(perm_list) or isinstance(perm_list, str):
raise ValueError("perm_list must be an iterable of permissions.")
return all(self.has_perm(perm, obj) for perm in perm_list)
def has_module_perms(self, module):
return _user_has_module_perms(self, module)
@property
def is_anonymous(self):
return True
@property
def is_authenticated(self):
return False
def get_username(self):
return self.username
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/models.py
|
Python
|
mit
| 16,500 |
import functools
import gzip
import re
from difflib import SequenceMatcher
from pathlib import Path
from django.conf import settings
from django.core.exceptions import (
FieldDoesNotExist,
ImproperlyConfigured,
ValidationError,
)
from django.utils.functional import cached_property, lazy
from django.utils.html import format_html, format_html_join
from django.utils.module_loading import import_string
from django.utils.translation import gettext as _
from django.utils.translation import ngettext
@functools.lru_cache(maxsize=None)
def get_default_password_validators():
return get_password_validators(settings.AUTH_PASSWORD_VALIDATORS)
def get_password_validators(validator_config):
validators = []
for validator in validator_config:
try:
klass = import_string(validator["NAME"])
except ImportError:
msg = (
"The module in NAME could not be imported: %s. Check your "
"AUTH_PASSWORD_VALIDATORS setting."
)
raise ImproperlyConfigured(msg % validator["NAME"])
validators.append(klass(**validator.get("OPTIONS", {})))
return validators
def validate_password(password, user=None, password_validators=None):
"""
Validate that the password meets all validator requirements.
If the password is valid, return ``None``.
If the password is invalid, raise ValidationError with all error messages.
"""
errors = []
if password_validators is None:
password_validators = get_default_password_validators()
for validator in password_validators:
try:
validator.validate(password, user)
except ValidationError as error:
errors.append(error)
if errors:
raise ValidationError(errors)
def password_changed(password, user=None, password_validators=None):
"""
Inform all validators that have implemented a password_changed() method
that the password has been changed.
"""
if password_validators is None:
password_validators = get_default_password_validators()
for validator in password_validators:
password_changed = getattr(validator, "password_changed", lambda *a: None)
password_changed(password, user)
def password_validators_help_texts(password_validators=None):
"""
Return a list of all help texts of all configured validators.
"""
help_texts = []
if password_validators is None:
password_validators = get_default_password_validators()
for validator in password_validators:
help_texts.append(validator.get_help_text())
return help_texts
def _password_validators_help_text_html(password_validators=None):
"""
Return an HTML string with all help texts of all configured validators
in an <ul>.
"""
help_texts = password_validators_help_texts(password_validators)
help_items = format_html_join(
"", "<li>{}</li>", ((help_text,) for help_text in help_texts)
)
return format_html("<ul>{}</ul>", help_items) if help_items else ""
password_validators_help_text_html = lazy(_password_validators_help_text_html, str)
class MinimumLengthValidator:
"""
Validate that the password is of a minimum length.
"""
def __init__(self, min_length=8):
self.min_length = min_length
def validate(self, password, user=None):
if len(password) < self.min_length:
raise ValidationError(
ngettext(
"This password is too short. It must contain at least "
"%(min_length)d character.",
"This password is too short. It must contain at least "
"%(min_length)d characters.",
self.min_length,
),
code="password_too_short",
params={"min_length": self.min_length},
)
def get_help_text(self):
return ngettext(
"Your password must contain at least %(min_length)d character.",
"Your password must contain at least %(min_length)d characters.",
self.min_length,
) % {"min_length": self.min_length}
def exceeds_maximum_length_ratio(password, max_similarity, value):
"""
Test that value is within a reasonable range of password.
The following ratio calculations are based on testing SequenceMatcher like
this:
for i in range(0,6):
print(10**i, SequenceMatcher(a='A', b='A'*(10**i)).quick_ratio())
which yields:
1 1.0
10 0.18181818181818182
100 0.019801980198019802
1000 0.001998001998001998
10000 0.00019998000199980003
100000 1.999980000199998e-05
This means a length_ratio of 10 should never yield a similarity higher than
0.2, for 100 this is down to 0.02 and for 1000 it is 0.002. This can be
calculated via 2 / length_ratio. As a result we avoid the potentially
expensive sequence matching.
"""
pwd_len = len(password)
length_bound_similarity = max_similarity / 2 * pwd_len
value_len = len(value)
return pwd_len >= 10 * value_len and value_len < length_bound_similarity
class UserAttributeSimilarityValidator:
"""
Validate that the password is sufficiently different from the user's
attributes.
If no specific attributes are provided, look at a sensible list of
defaults. Attributes that don't exist are ignored. Comparison is made to
not only the full attribute value, but also its components, so that, for
example, a password is validated against either part of an email address,
as well as the full address.
"""
DEFAULT_USER_ATTRIBUTES = ("username", "first_name", "last_name", "email")
def __init__(self, user_attributes=DEFAULT_USER_ATTRIBUTES, max_similarity=0.7):
self.user_attributes = user_attributes
if max_similarity < 0.1:
raise ValueError("max_similarity must be at least 0.1")
self.max_similarity = max_similarity
def validate(self, password, user=None):
if not user:
return
password = password.lower()
for attribute_name in self.user_attributes:
value = getattr(user, attribute_name, None)
if not value or not isinstance(value, str):
continue
value_lower = value.lower()
value_parts = re.split(r"\W+", value_lower) + [value_lower]
for value_part in value_parts:
if exceeds_maximum_length_ratio(
password, self.max_similarity, value_part
):
continue
if (
SequenceMatcher(a=password, b=value_part).quick_ratio()
>= self.max_similarity
):
try:
verbose_name = str(
user._meta.get_field(attribute_name).verbose_name
)
except FieldDoesNotExist:
verbose_name = attribute_name
raise ValidationError(
_("The password is too similar to the %(verbose_name)s."),
code="password_too_similar",
params={"verbose_name": verbose_name},
)
def get_help_text(self):
return _(
"Your password can’t be too similar to your other personal information."
)
class CommonPasswordValidator:
"""
Validate that the password is not a common password.
The password is rejected if it occurs in a provided list of passwords,
which may be gzipped. The list Django ships with contains 20000 common
passwords (lowercased and deduplicated), created by Royce Williams:
https://gist.github.com/roycewilliams/226886fd01572964e1431ac8afc999ce
The password list must be lowercased to match the comparison in validate().
"""
@cached_property
def DEFAULT_PASSWORD_LIST_PATH(self):
return Path(__file__).resolve().parent / "common-passwords.txt.gz"
def __init__(self, password_list_path=DEFAULT_PASSWORD_LIST_PATH):
if password_list_path is CommonPasswordValidator.DEFAULT_PASSWORD_LIST_PATH:
password_list_path = self.DEFAULT_PASSWORD_LIST_PATH
try:
with gzip.open(password_list_path, "rt", encoding="utf-8") as f:
self.passwords = {x.strip() for x in f}
except OSError:
with open(password_list_path) as f:
self.passwords = {x.strip() for x in f}
def validate(self, password, user=None):
if password.lower().strip() in self.passwords:
raise ValidationError(
_("This password is too common."),
code="password_too_common",
)
def get_help_text(self):
return _("Your password can’t be a commonly used password.")
class NumericPasswordValidator:
"""
Validate that the password is not entirely numeric.
"""
def validate(self, password, user=None):
if password.isdigit():
raise ValidationError(
_("This password is entirely numeric."),
code="password_entirely_numeric",
)
def get_help_text(self):
return _("Your password can’t be entirely numeric.")
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/password_validation.py
|
Python
|
mit
| 9,376 |
from django.dispatch import Signal
user_logged_in = Signal()
user_login_failed = Signal()
user_logged_out = Signal()
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/signals.py
|
Python
|
mit
| 118 |
<div{% include 'django/forms/widgets/attrs.html' %}>
{% for entry in summary %}
<strong>{{ entry.label }}</strong>{% if entry.value %}: <bdi>{{ entry.value }}</bdi>{% endif %}
{% endfor %}
</div>
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/templates/auth/widgets/read_only_password_hash.html
|
HTML
|
mit
| 196 |
{% load i18n %}{% autoescape off %}
{% blocktranslate %}Password reset on {{ site_name }}{% endblocktranslate %}
{% endautoescape %}
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/templates/registration/password_reset_subject.txt
|
Text
|
mit
| 132 |
from datetime import datetime
from django.conf import settings
from django.utils.crypto import constant_time_compare, salted_hmac
from django.utils.http import base36_to_int, int_to_base36
class PasswordResetTokenGenerator:
"""
Strategy object used to generate and check tokens for the password
reset mechanism.
"""
key_salt = "django.contrib.auth.tokens.PasswordResetTokenGenerator"
algorithm = None
_secret = None
_secret_fallbacks = None
def __init__(self):
self.algorithm = self.algorithm or "sha256"
def _get_secret(self):
return self._secret or settings.SECRET_KEY
def _set_secret(self, secret):
self._secret = secret
secret = property(_get_secret, _set_secret)
def _get_fallbacks(self):
if self._secret_fallbacks is None:
return settings.SECRET_KEY_FALLBACKS
return self._secret_fallbacks
def _set_fallbacks(self, fallbacks):
self._secret_fallbacks = fallbacks
secret_fallbacks = property(_get_fallbacks, _set_fallbacks)
def make_token(self, user):
"""
Return a token that can be used once to do a password reset
for the given user.
"""
return self._make_token_with_timestamp(
user,
self._num_seconds(self._now()),
self.secret,
)
def check_token(self, user, token):
"""
Check that a password reset token is correct for a given user.
"""
if not (user and token):
return False
# Parse the token
try:
ts_b36, _ = token.split("-")
except ValueError:
return False
try:
ts = base36_to_int(ts_b36)
except ValueError:
return False
# Check that the timestamp/uid has not been tampered with
for secret in [self.secret, *self.secret_fallbacks]:
if constant_time_compare(
self._make_token_with_timestamp(user, ts, secret),
token,
):
break
else:
return False
# Check the timestamp is within limit.
if (self._num_seconds(self._now()) - ts) > settings.PASSWORD_RESET_TIMEOUT:
return False
return True
def _make_token_with_timestamp(self, user, timestamp, secret):
# timestamp is number of seconds since 2001-1-1. Converted to base 36,
# this gives us a 6 digit string until about 2069.
ts_b36 = int_to_base36(timestamp)
hash_string = salted_hmac(
self.key_salt,
self._make_hash_value(user, timestamp),
secret=secret,
algorithm=self.algorithm,
).hexdigest()[
::2
] # Limit to shorten the URL.
return "%s-%s" % (ts_b36, hash_string)
def _make_hash_value(self, user, timestamp):
"""
Hash the user's primary key, email (if available), and some user state
that's sure to change after a password reset to produce a token that is
invalidated when it's used:
1. The password field will change upon a password reset (even if the
same password is chosen, due to password salting).
2. The last_login field will usually be updated very shortly after
a password reset.
Failing those things, settings.PASSWORD_RESET_TIMEOUT eventually
invalidates the token.
Running this data through salted_hmac() prevents password cracking
attempts using the reset token, provided the secret isn't compromised.
"""
# Truncate microseconds so that tokens are consistent even if the
# database doesn't support microseconds.
login_timestamp = (
""
if user.last_login is None
else user.last_login.replace(microsecond=0, tzinfo=None)
)
email_field = user.get_email_field_name()
email = getattr(user, email_field, "") or ""
return f"{user.pk}{user.password}{login_timestamp}{timestamp}{email}"
def _num_seconds(self, dt):
return int((dt - datetime(2001, 1, 1)).total_seconds())
def _now(self):
# Used for mocking in tests
return datetime.now()
default_token_generator = PasswordResetTokenGenerator()
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/tokens.py
|
Python
|
mit
| 4,328 |
# The views used below are normally mapped in the AdminSite instance.
# This URLs file is used to provide a reliable view deployment for test purposes.
# It is also provided as a convenience to those who want to deploy these URLs
# elsewhere.
from django.contrib.auth import views
from django.urls import path
urlpatterns = [
path("login/", views.LoginView.as_view(), name="login"),
path("logout/", views.LogoutView.as_view(), name="logout"),
path(
"password_change/", views.PasswordChangeView.as_view(), name="password_change"
),
path(
"password_change/done/",
views.PasswordChangeDoneView.as_view(),
name="password_change_done",
),
path("password_reset/", views.PasswordResetView.as_view(), name="password_reset"),
path(
"password_reset/done/",
views.PasswordResetDoneView.as_view(),
name="password_reset_done",
),
path(
"reset/<uidb64>/<token>/",
views.PasswordResetConfirmView.as_view(),
name="password_reset_confirm",
),
path(
"reset/done/",
views.PasswordResetCompleteView.as_view(),
name="password_reset_complete",
),
]
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/urls.py
|
Python
|
mit
| 1,185 |
import re
from django.core import validators
from django.utils.deconstruct import deconstructible
from django.utils.translation import gettext_lazy as _
@deconstructible
class ASCIIUsernameValidator(validators.RegexValidator):
regex = r"^[\w.@+-]+\Z"
message = _(
"Enter a valid username. This value may contain only unaccented lowercase a-z "
"and uppercase A-Z letters, numbers, and @/./+/-/_ characters."
)
flags = re.ASCII
@deconstructible
class UnicodeUsernameValidator(validators.RegexValidator):
regex = r"^[\w.@+-]+\Z"
message = _(
"Enter a valid username. This value may contain only letters, "
"numbers, and @/./+/-/_ characters."
)
flags = 0
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/validators.py
|
Python
|
mit
| 722 |
import warnings
from urllib.parse import urlparse, urlunparse
from django.conf import settings
# Avoid shadowing the login() and logout() views below.
from django.contrib.auth import REDIRECT_FIELD_NAME, get_user_model
from django.contrib.auth import login as auth_login
from django.contrib.auth import logout as auth_logout
from django.contrib.auth import update_session_auth_hash
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import (
AuthenticationForm,
PasswordChangeForm,
PasswordResetForm,
SetPasswordForm,
)
from django.contrib.auth.tokens import default_token_generator
from django.contrib.sites.shortcuts import get_current_site
from django.core.exceptions import ImproperlyConfigured, ValidationError
from django.http import HttpResponseRedirect, QueryDict
from django.shortcuts import resolve_url
from django.urls import reverse_lazy
from django.utils.decorators import method_decorator
from django.utils.deprecation import RemovedInDjango50Warning
from django.utils.http import url_has_allowed_host_and_scheme, urlsafe_base64_decode
from django.utils.translation import gettext_lazy as _
from django.views.decorators.cache import never_cache
from django.views.decorators.csrf import csrf_protect
from django.views.decorators.debug import sensitive_post_parameters
from django.views.generic.base import TemplateView
from django.views.generic.edit import FormView
UserModel = get_user_model()
class RedirectURLMixin:
next_page = None
redirect_field_name = REDIRECT_FIELD_NAME
success_url_allowed_hosts = set()
def get_success_url(self):
return self.get_redirect_url() or self.get_default_redirect_url()
def get_redirect_url(self):
"""Return the user-originating redirect URL if it's safe."""
redirect_to = self.request.POST.get(
self.redirect_field_name, self.request.GET.get(self.redirect_field_name)
)
url_is_safe = url_has_allowed_host_and_scheme(
url=redirect_to,
allowed_hosts=self.get_success_url_allowed_hosts(),
require_https=self.request.is_secure(),
)
return redirect_to if url_is_safe else ""
def get_success_url_allowed_hosts(self):
return {self.request.get_host(), *self.success_url_allowed_hosts}
def get_default_redirect_url(self):
"""Return the default redirect URL."""
if self.next_page:
return resolve_url(self.next_page)
raise ImproperlyConfigured("No URL to redirect to. Provide a next_page.")
class LoginView(RedirectURLMixin, FormView):
"""
Display the login form and handle the login action.
"""
form_class = AuthenticationForm
authentication_form = None
template_name = "registration/login.html"
redirect_authenticated_user = False
extra_context = None
@method_decorator(sensitive_post_parameters())
@method_decorator(csrf_protect)
@method_decorator(never_cache)
def dispatch(self, request, *args, **kwargs):
if self.redirect_authenticated_user and self.request.user.is_authenticated:
redirect_to = self.get_success_url()
if redirect_to == self.request.path:
raise ValueError(
"Redirection loop for authenticated user detected. Check that "
"your LOGIN_REDIRECT_URL doesn't point to a login page."
)
return HttpResponseRedirect(redirect_to)
return super().dispatch(request, *args, **kwargs)
def get_default_redirect_url(self):
"""Return the default redirect URL."""
if self.next_page:
return resolve_url(self.next_page)
else:
return resolve_url(settings.LOGIN_REDIRECT_URL)
def get_form_class(self):
return self.authentication_form or self.form_class
def get_form_kwargs(self):
kwargs = super().get_form_kwargs()
kwargs["request"] = self.request
return kwargs
def form_valid(self, form):
"""Security check complete. Log the user in."""
auth_login(self.request, form.get_user())
return HttpResponseRedirect(self.get_success_url())
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
current_site = get_current_site(self.request)
context.update(
{
self.redirect_field_name: self.get_redirect_url(),
"site": current_site,
"site_name": current_site.name,
**(self.extra_context or {}),
}
)
return context
class LogoutView(RedirectURLMixin, TemplateView):
"""
Log out the user and display the 'You are logged out' message.
"""
# RemovedInDjango50Warning: when the deprecation ends, remove "get" and
# "head" from http_method_names.
http_method_names = ["get", "head", "post", "options"]
template_name = "registration/logged_out.html"
extra_context = None
# RemovedInDjango50Warning: when the deprecation ends, move
# @method_decorator(csrf_protect) from post() to dispatch().
@method_decorator(never_cache)
def dispatch(self, request, *args, **kwargs):
if request.method.lower() == "get":
warnings.warn(
"Log out via GET requests is deprecated and will be removed in Django "
"5.0. Use POST requests for logging out.",
RemovedInDjango50Warning,
)
return super().dispatch(request, *args, **kwargs)
@method_decorator(csrf_protect)
def post(self, request, *args, **kwargs):
"""Logout may be done via POST."""
auth_logout(request)
redirect_to = self.get_success_url()
if redirect_to != request.get_full_path():
# Redirect to target page once the session has been cleared.
return HttpResponseRedirect(redirect_to)
return super().get(request, *args, **kwargs)
# RemovedInDjango50Warning.
get = post
def get_default_redirect_url(self):
"""Return the default redirect URL."""
if self.next_page:
return resolve_url(self.next_page)
elif settings.LOGOUT_REDIRECT_URL:
return resolve_url(settings.LOGOUT_REDIRECT_URL)
else:
return self.request.path
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
current_site = get_current_site(self.request)
context.update(
{
"site": current_site,
"site_name": current_site.name,
"title": _("Logged out"),
"subtitle": None,
**(self.extra_context or {}),
}
)
return context
def logout_then_login(request, login_url=None):
"""
Log out the user if they are logged in. Then redirect to the login page.
"""
login_url = resolve_url(login_url or settings.LOGIN_URL)
return LogoutView.as_view(next_page=login_url)(request)
def redirect_to_login(next, login_url=None, redirect_field_name=REDIRECT_FIELD_NAME):
"""
Redirect the user to the login page, passing the given 'next' page.
"""
resolved_url = resolve_url(login_url or settings.LOGIN_URL)
login_url_parts = list(urlparse(resolved_url))
if redirect_field_name:
querystring = QueryDict(login_url_parts[4], mutable=True)
querystring[redirect_field_name] = next
login_url_parts[4] = querystring.urlencode(safe="/")
return HttpResponseRedirect(urlunparse(login_url_parts))
# Class-based password reset views
# - PasswordResetView sends the mail
# - PasswordResetDoneView shows a success message for the above
# - PasswordResetConfirmView checks the link the user clicked and
# prompts for a new password
# - PasswordResetCompleteView shows a success message for the above
class PasswordContextMixin:
extra_context = None
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context.update(
{"title": self.title, "subtitle": None, **(self.extra_context or {})}
)
return context
class PasswordResetView(PasswordContextMixin, FormView):
email_template_name = "registration/password_reset_email.html"
extra_email_context = None
form_class = PasswordResetForm
from_email = None
html_email_template_name = None
subject_template_name = "registration/password_reset_subject.txt"
success_url = reverse_lazy("password_reset_done")
template_name = "registration/password_reset_form.html"
title = _("Password reset")
token_generator = default_token_generator
@method_decorator(csrf_protect)
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
def form_valid(self, form):
opts = {
"use_https": self.request.is_secure(),
"token_generator": self.token_generator,
"from_email": self.from_email,
"email_template_name": self.email_template_name,
"subject_template_name": self.subject_template_name,
"request": self.request,
"html_email_template_name": self.html_email_template_name,
"extra_email_context": self.extra_email_context,
}
form.save(**opts)
return super().form_valid(form)
INTERNAL_RESET_SESSION_TOKEN = "_password_reset_token"
class PasswordResetDoneView(PasswordContextMixin, TemplateView):
template_name = "registration/password_reset_done.html"
title = _("Password reset sent")
class PasswordResetConfirmView(PasswordContextMixin, FormView):
form_class = SetPasswordForm
post_reset_login = False
post_reset_login_backend = None
reset_url_token = "set-password"
success_url = reverse_lazy("password_reset_complete")
template_name = "registration/password_reset_confirm.html"
title = _("Enter new password")
token_generator = default_token_generator
@method_decorator(sensitive_post_parameters())
@method_decorator(never_cache)
def dispatch(self, *args, **kwargs):
if "uidb64" not in kwargs or "token" not in kwargs:
raise ImproperlyConfigured(
"The URL path must contain 'uidb64' and 'token' parameters."
)
self.validlink = False
self.user = self.get_user(kwargs["uidb64"])
if self.user is not None:
token = kwargs["token"]
if token == self.reset_url_token:
session_token = self.request.session.get(INTERNAL_RESET_SESSION_TOKEN)
if self.token_generator.check_token(self.user, session_token):
# If the token is valid, display the password reset form.
self.validlink = True
return super().dispatch(*args, **kwargs)
else:
if self.token_generator.check_token(self.user, token):
# Store the token in the session and redirect to the
# password reset form at a URL without the token. That
# avoids the possibility of leaking the token in the
# HTTP Referer header.
self.request.session[INTERNAL_RESET_SESSION_TOKEN] = token
redirect_url = self.request.path.replace(
token, self.reset_url_token
)
return HttpResponseRedirect(redirect_url)
# Display the "Password reset unsuccessful" page.
return self.render_to_response(self.get_context_data())
def get_user(self, uidb64):
try:
# urlsafe_base64_decode() decodes to bytestring
uid = urlsafe_base64_decode(uidb64).decode()
user = UserModel._default_manager.get(pk=uid)
except (
TypeError,
ValueError,
OverflowError,
UserModel.DoesNotExist,
ValidationError,
):
user = None
return user
def get_form_kwargs(self):
kwargs = super().get_form_kwargs()
kwargs["user"] = self.user
return kwargs
def form_valid(self, form):
user = form.save()
del self.request.session[INTERNAL_RESET_SESSION_TOKEN]
if self.post_reset_login:
auth_login(self.request, user, self.post_reset_login_backend)
return super().form_valid(form)
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
if self.validlink:
context["validlink"] = True
else:
context.update(
{
"form": None,
"title": _("Password reset unsuccessful"),
"validlink": False,
}
)
return context
class PasswordResetCompleteView(PasswordContextMixin, TemplateView):
template_name = "registration/password_reset_complete.html"
title = _("Password reset complete")
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["login_url"] = resolve_url(settings.LOGIN_URL)
return context
class PasswordChangeView(PasswordContextMixin, FormView):
form_class = PasswordChangeForm
success_url = reverse_lazy("password_change_done")
template_name = "registration/password_change_form.html"
title = _("Password change")
@method_decorator(sensitive_post_parameters())
@method_decorator(csrf_protect)
@method_decorator(login_required)
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
def get_form_kwargs(self):
kwargs = super().get_form_kwargs()
kwargs["user"] = self.request.user
return kwargs
def form_valid(self, form):
form.save()
# Updating the password logs out all other sessions for the user
# except the current one.
update_session_auth_hash(self.request, form.user)
return super().form_valid(form)
class PasswordChangeDoneView(PasswordContextMixin, TemplateView):
template_name = "registration/password_change_done.html"
title = _("Password change successful")
@method_decorator(login_required)
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
|
castiel248/Convert
|
Lib/site-packages/django/contrib/auth/views.py
|
Python
|
mit
| 14,446 |
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/__init__.py
|
Python
|
mit
| 0 |
|
from functools import partial
from django.contrib.admin.checks import InlineModelAdminChecks
from django.contrib.admin.options import InlineModelAdmin, flatten_fieldsets
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.forms import (
BaseGenericInlineFormSet,
generic_inlineformset_factory,
)
from django.core import checks
from django.core.exceptions import FieldDoesNotExist
from django.forms import ALL_FIELDS
from django.forms.models import modelform_defines_fields
class GenericInlineModelAdminChecks(InlineModelAdminChecks):
def _check_exclude_of_parent_model(self, obj, parent_model):
# There's no FK to exclude, so no exclusion checks are required.
return []
def _check_relation(self, obj, parent_model):
# There's no FK, but we do need to confirm that the ct_field and
# ct_fk_field are valid, and that they are part of a GenericForeignKey.
gfks = [
f
for f in obj.model._meta.private_fields
if isinstance(f, GenericForeignKey)
]
if not gfks:
return [
checks.Error(
"'%s' has no GenericForeignKey." % obj.model._meta.label,
obj=obj.__class__,
id="admin.E301",
)
]
else:
# Check that the ct_field and ct_fk_fields exist
try:
obj.model._meta.get_field(obj.ct_field)
except FieldDoesNotExist:
return [
checks.Error(
"'ct_field' references '%s', which is not a field on '%s'."
% (
obj.ct_field,
obj.model._meta.label,
),
obj=obj.__class__,
id="admin.E302",
)
]
try:
obj.model._meta.get_field(obj.ct_fk_field)
except FieldDoesNotExist:
return [
checks.Error(
"'ct_fk_field' references '%s', which is not a field on '%s'."
% (
obj.ct_fk_field,
obj.model._meta.label,
),
obj=obj.__class__,
id="admin.E303",
)
]
# There's one or more GenericForeignKeys; make sure that one of them
# uses the right ct_field and ct_fk_field.
for gfk in gfks:
if gfk.ct_field == obj.ct_field and gfk.fk_field == obj.ct_fk_field:
return []
return [
checks.Error(
"'%s' has no GenericForeignKey using content type field '%s' and "
"object ID field '%s'."
% (
obj.model._meta.label,
obj.ct_field,
obj.ct_fk_field,
),
obj=obj.__class__,
id="admin.E304",
)
]
class GenericInlineModelAdmin(InlineModelAdmin):
ct_field = "content_type"
ct_fk_field = "object_id"
formset = BaseGenericInlineFormSet
checks_class = GenericInlineModelAdminChecks
def get_formset(self, request, obj=None, **kwargs):
if "fields" in kwargs:
fields = kwargs.pop("fields")
else:
fields = flatten_fieldsets(self.get_fieldsets(request, obj))
exclude = [*(self.exclude or []), *self.get_readonly_fields(request, obj)]
if (
self.exclude is None
and hasattr(self.form, "_meta")
and self.form._meta.exclude
):
# Take the custom ModelForm's Meta.exclude into account only if the
# GenericInlineModelAdmin doesn't define its own.
exclude.extend(self.form._meta.exclude)
exclude = exclude or None
can_delete = self.can_delete and self.has_delete_permission(request, obj)
defaults = {
"ct_field": self.ct_field,
"fk_field": self.ct_fk_field,
"form": self.form,
"formfield_callback": partial(self.formfield_for_dbfield, request=request),
"formset": self.formset,
"extra": self.get_extra(request, obj),
"can_delete": can_delete,
"can_order": False,
"fields": fields,
"min_num": self.get_min_num(request, obj),
"max_num": self.get_max_num(request, obj),
"exclude": exclude,
**kwargs,
}
if defaults["fields"] is None and not modelform_defines_fields(
defaults["form"]
):
defaults["fields"] = ALL_FIELDS
return generic_inlineformset_factory(self.model, **defaults)
class GenericStackedInline(GenericInlineModelAdmin):
template = "admin/edit_inline/stacked.html"
class GenericTabularInline(GenericInlineModelAdmin):
template = "admin/edit_inline/tabular.html"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/admin.py
|
Python
|
mit
| 5,200 |
from django.apps import AppConfig
from django.contrib.contenttypes.checks import (
check_generic_foreign_keys,
check_model_name_lengths,
)
from django.core import checks
from django.db.models.signals import post_migrate, pre_migrate
from django.utils.translation import gettext_lazy as _
from .management import create_contenttypes, inject_rename_contenttypes_operations
class ContentTypesConfig(AppConfig):
default_auto_field = "django.db.models.AutoField"
name = "django.contrib.contenttypes"
verbose_name = _("Content Types")
def ready(self):
pre_migrate.connect(inject_rename_contenttypes_operations, sender=self)
post_migrate.connect(create_contenttypes)
checks.register(check_generic_foreign_keys, checks.Tags.models)
checks.register(check_model_name_lengths, checks.Tags.models)
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/apps.py
|
Python
|
mit
| 846 |
from itertools import chain
from django.apps import apps
from django.core.checks import Error
def check_generic_foreign_keys(app_configs=None, **kwargs):
from .fields import GenericForeignKey
if app_configs is None:
models = apps.get_models()
else:
models = chain.from_iterable(
app_config.get_models() for app_config in app_configs
)
errors = []
fields = (
obj
for model in models
for obj in vars(model).values()
if isinstance(obj, GenericForeignKey)
)
for field in fields:
errors.extend(field.check())
return errors
def check_model_name_lengths(app_configs=None, **kwargs):
if app_configs is None:
models = apps.get_models()
else:
models = chain.from_iterable(
app_config.get_models() for app_config in app_configs
)
errors = []
for model in models:
if len(model._meta.model_name) > 100:
errors.append(
Error(
"Model names must be at most 100 characters (got %d)."
% (len(model._meta.model_name),),
obj=model,
id="contenttypes.E005",
)
)
return errors
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/checks.py
|
Python
|
mit
| 1,268 |
import functools
import itertools
from collections import defaultdict
from asgiref.sync import sync_to_async
from django.contrib.contenttypes.models import ContentType
from django.core import checks
from django.core.exceptions import FieldDoesNotExist, ObjectDoesNotExist
from django.db import DEFAULT_DB_ALIAS, models, router, transaction
from django.db.models import DO_NOTHING, ForeignObject, ForeignObjectRel
from django.db.models.base import ModelBase, make_foreign_order_accessors
from django.db.models.fields.mixins import FieldCacheMixin
from django.db.models.fields.related import (
ReverseManyToOneDescriptor,
lazy_related_operation,
)
from django.db.models.query_utils import PathInfo
from django.db.models.sql import AND
from django.db.models.sql.where import WhereNode
from django.db.models.utils import AltersData
from django.utils.functional import cached_property
class GenericForeignKey(FieldCacheMixin):
"""
Provide a generic many-to-one relation through the ``content_type`` and
``object_id`` fields.
This class also doubles as an accessor to the related object (similar to
ForwardManyToOneDescriptor) by adding itself as a model attribute.
"""
# Field flags
auto_created = False
concrete = False
editable = False
hidden = False
is_relation = True
many_to_many = False
many_to_one = True
one_to_many = False
one_to_one = False
related_model = None
remote_field = None
def __init__(
self, ct_field="content_type", fk_field="object_id", for_concrete_model=True
):
self.ct_field = ct_field
self.fk_field = fk_field
self.for_concrete_model = for_concrete_model
self.editable = False
self.rel = None
self.column = None
def contribute_to_class(self, cls, name, **kwargs):
self.name = name
self.model = cls
cls._meta.add_field(self, private=True)
setattr(cls, name, self)
def get_filter_kwargs_for_object(self, obj):
"""See corresponding method on Field"""
return {
self.fk_field: getattr(obj, self.fk_field),
self.ct_field: getattr(obj, self.ct_field),
}
def get_forward_related_filter(self, obj):
"""See corresponding method on RelatedField"""
return {
self.fk_field: obj.pk,
self.ct_field: ContentType.objects.get_for_model(obj).pk,
}
def __str__(self):
model = self.model
return "%s.%s" % (model._meta.label, self.name)
def check(self, **kwargs):
return [
*self._check_field_name(),
*self._check_object_id_field(),
*self._check_content_type_field(),
]
def _check_field_name(self):
if self.name.endswith("_"):
return [
checks.Error(
"Field names must not end with an underscore.",
obj=self,
id="fields.E001",
)
]
else:
return []
def _check_object_id_field(self):
try:
self.model._meta.get_field(self.fk_field)
except FieldDoesNotExist:
return [
checks.Error(
"The GenericForeignKey object ID references the "
"nonexistent field '%s'." % self.fk_field,
obj=self,
id="contenttypes.E001",
)
]
else:
return []
def _check_content_type_field(self):
"""
Check if field named `field_name` in model `model` exists and is a
valid content_type field (is a ForeignKey to ContentType).
"""
try:
field = self.model._meta.get_field(self.ct_field)
except FieldDoesNotExist:
return [
checks.Error(
"The GenericForeignKey content type references the "
"nonexistent field '%s.%s'."
% (self.model._meta.object_name, self.ct_field),
obj=self,
id="contenttypes.E002",
)
]
else:
if not isinstance(field, models.ForeignKey):
return [
checks.Error(
"'%s.%s' is not a ForeignKey."
% (self.model._meta.object_name, self.ct_field),
hint=(
"GenericForeignKeys must use a ForeignKey to "
"'contenttypes.ContentType' as the 'content_type' field."
),
obj=self,
id="contenttypes.E003",
)
]
elif field.remote_field.model != ContentType:
return [
checks.Error(
"'%s.%s' is not a ForeignKey to 'contenttypes.ContentType'."
% (self.model._meta.object_name, self.ct_field),
hint=(
"GenericForeignKeys must use a ForeignKey to "
"'contenttypes.ContentType' as the 'content_type' field."
),
obj=self,
id="contenttypes.E004",
)
]
else:
return []
def get_cache_name(self):
return self.name
def get_content_type(self, obj=None, id=None, using=None):
if obj is not None:
return ContentType.objects.db_manager(obj._state.db).get_for_model(
obj, for_concrete_model=self.for_concrete_model
)
elif id is not None:
return ContentType.objects.db_manager(using).get_for_id(id)
else:
# This should never happen. I love comments like this, don't you?
raise Exception("Impossible arguments to GFK.get_content_type!")
def get_prefetch_queryset(self, instances, queryset=None):
if queryset is not None:
raise ValueError("Custom queryset can't be used for this lookup.")
# For efficiency, group the instances by content type and then do one
# query per model
fk_dict = defaultdict(set)
# We need one instance for each group in order to get the right db:
instance_dict = {}
ct_attname = self.model._meta.get_field(self.ct_field).get_attname()
for instance in instances:
# We avoid looking for values if either ct_id or fkey value is None
ct_id = getattr(instance, ct_attname)
if ct_id is not None:
fk_val = getattr(instance, self.fk_field)
if fk_val is not None:
fk_dict[ct_id].add(fk_val)
instance_dict[ct_id] = instance
ret_val = []
for ct_id, fkeys in fk_dict.items():
instance = instance_dict[ct_id]
ct = self.get_content_type(id=ct_id, using=instance._state.db)
ret_val.extend(ct.get_all_objects_for_this_type(pk__in=fkeys))
# For doing the join in Python, we have to match both the FK val and the
# content type, so we use a callable that returns a (fk, class) pair.
def gfk_key(obj):
ct_id = getattr(obj, ct_attname)
if ct_id is None:
return None
else:
model = self.get_content_type(
id=ct_id, using=obj._state.db
).model_class()
return (
model._meta.pk.get_prep_value(getattr(obj, self.fk_field)),
model,
)
return (
ret_val,
lambda obj: (obj.pk, obj.__class__),
gfk_key,
True,
self.name,
False,
)
def __get__(self, instance, cls=None):
if instance is None:
return self
# Don't use getattr(instance, self.ct_field) here because that might
# reload the same ContentType over and over (#5570). Instead, get the
# content type ID here, and later when the actual instance is needed,
# use ContentType.objects.get_for_id(), which has a global cache.
f = self.model._meta.get_field(self.ct_field)
ct_id = getattr(instance, f.get_attname(), None)
pk_val = getattr(instance, self.fk_field)
rel_obj = self.get_cached_value(instance, default=None)
if rel_obj is None and self.is_cached(instance):
return rel_obj
if rel_obj is not None:
ct_match = (
ct_id == self.get_content_type(obj=rel_obj, using=instance._state.db).id
)
pk_match = rel_obj._meta.pk.to_python(pk_val) == rel_obj.pk
if ct_match and pk_match:
return rel_obj
else:
rel_obj = None
if ct_id is not None:
ct = self.get_content_type(id=ct_id, using=instance._state.db)
try:
rel_obj = ct.get_object_for_this_type(pk=pk_val)
except ObjectDoesNotExist:
pass
self.set_cached_value(instance, rel_obj)
return rel_obj
def __set__(self, instance, value):
ct = None
fk = None
if value is not None:
ct = self.get_content_type(obj=value)
fk = value.pk
setattr(instance, self.ct_field, ct)
setattr(instance, self.fk_field, fk)
self.set_cached_value(instance, value)
class GenericRel(ForeignObjectRel):
"""
Used by GenericRelation to store information about the relation.
"""
def __init__(
self,
field,
to,
related_name=None,
related_query_name=None,
limit_choices_to=None,
):
super().__init__(
field,
to,
related_name=related_query_name or "+",
related_query_name=related_query_name,
limit_choices_to=limit_choices_to,
on_delete=DO_NOTHING,
)
class GenericRelation(ForeignObject):
"""
Provide a reverse to a relation created by a GenericForeignKey.
"""
# Field flags
auto_created = False
empty_strings_allowed = False
many_to_many = False
many_to_one = False
one_to_many = True
one_to_one = False
rel_class = GenericRel
mti_inherited = False
def __init__(
self,
to,
object_id_field="object_id",
content_type_field="content_type",
for_concrete_model=True,
related_query_name=None,
limit_choices_to=None,
**kwargs,
):
kwargs["rel"] = self.rel_class(
self,
to,
related_query_name=related_query_name,
limit_choices_to=limit_choices_to,
)
# Reverse relations are always nullable (Django can't enforce that a
# foreign key on the related model points to this model).
kwargs["null"] = True
kwargs["blank"] = True
kwargs["on_delete"] = models.CASCADE
kwargs["editable"] = False
kwargs["serialize"] = False
# This construct is somewhat of an abuse of ForeignObject. This field
# represents a relation from pk to object_id field. But, this relation
# isn't direct, the join is generated reverse along foreign key. So,
# the from_field is object_id field, to_field is pk because of the
# reverse join.
super().__init__(to, from_fields=[object_id_field], to_fields=[], **kwargs)
self.object_id_field_name = object_id_field
self.content_type_field_name = content_type_field
self.for_concrete_model = for_concrete_model
def check(self, **kwargs):
return [
*super().check(**kwargs),
*self._check_generic_foreign_key_existence(),
]
def _is_matching_generic_foreign_key(self, field):
"""
Return True if field is a GenericForeignKey whose content type and
object id fields correspond to the equivalent attributes on this
GenericRelation.
"""
return (
isinstance(field, GenericForeignKey)
and field.ct_field == self.content_type_field_name
and field.fk_field == self.object_id_field_name
)
def _check_generic_foreign_key_existence(self):
target = self.remote_field.model
if isinstance(target, ModelBase):
fields = target._meta.private_fields
if any(self._is_matching_generic_foreign_key(field) for field in fields):
return []
else:
return [
checks.Error(
"The GenericRelation defines a relation with the model "
"'%s', but that model does not have a GenericForeignKey."
% target._meta.label,
obj=self,
id="contenttypes.E004",
)
]
else:
return []
def resolve_related_fields(self):
self.to_fields = [self.model._meta.pk.name]
return [
(
self.remote_field.model._meta.get_field(self.object_id_field_name),
self.model._meta.pk,
)
]
def _get_path_info_with_parent(self, filtered_relation):
"""
Return the path that joins the current model through any parent models.
The idea is that if you have a GFK defined on a parent model then we
need to join the parent model first, then the child model.
"""
# With an inheritance chain ChildTag -> Tag and Tag defines the
# GenericForeignKey, and a TaggedItem model has a GenericRelation to
# ChildTag, then we need to generate a join from TaggedItem to Tag
# (as Tag.object_id == TaggedItem.pk), and another join from Tag to
# ChildTag (as that is where the relation is to). Do this by first
# generating a join to the parent model, then generating joins to the
# child models.
path = []
opts = self.remote_field.model._meta.concrete_model._meta
parent_opts = opts.get_field(self.object_id_field_name).model._meta
target = parent_opts.pk
path.append(
PathInfo(
from_opts=self.model._meta,
to_opts=parent_opts,
target_fields=(target,),
join_field=self.remote_field,
m2m=True,
direct=False,
filtered_relation=filtered_relation,
)
)
# Collect joins needed for the parent -> child chain. This is easiest
# to do if we collect joins for the child -> parent chain and then
# reverse the direction (call to reverse() and use of
# field.remote_field.get_path_info()).
parent_field_chain = []
while parent_opts != opts:
field = opts.get_ancestor_link(parent_opts.model)
parent_field_chain.append(field)
opts = field.remote_field.model._meta
parent_field_chain.reverse()
for field in parent_field_chain:
path.extend(field.remote_field.path_infos)
return path
def get_path_info(self, filtered_relation=None):
opts = self.remote_field.model._meta
object_id_field = opts.get_field(self.object_id_field_name)
if object_id_field.model != opts.model:
return self._get_path_info_with_parent(filtered_relation)
else:
target = opts.pk
return [
PathInfo(
from_opts=self.model._meta,
to_opts=opts,
target_fields=(target,),
join_field=self.remote_field,
m2m=True,
direct=False,
filtered_relation=filtered_relation,
)
]
def get_reverse_path_info(self, filtered_relation=None):
opts = self.model._meta
from_opts = self.remote_field.model._meta
return [
PathInfo(
from_opts=from_opts,
to_opts=opts,
target_fields=(opts.pk,),
join_field=self,
m2m=False,
direct=False,
filtered_relation=filtered_relation,
)
]
def value_to_string(self, obj):
qs = getattr(obj, self.name).all()
return str([instance.pk for instance in qs])
def contribute_to_class(self, cls, name, **kwargs):
kwargs["private_only"] = True
super().contribute_to_class(cls, name, **kwargs)
self.model = cls
# Disable the reverse relation for fields inherited by subclasses of a
# model in multi-table inheritance. The reverse relation points to the
# field of the base model.
if self.mti_inherited:
self.remote_field.related_name = "+"
self.remote_field.related_query_name = None
setattr(cls, self.name, ReverseGenericManyToOneDescriptor(self.remote_field))
# Add get_RELATED_order() and set_RELATED_order() to the model this
# field belongs to, if the model on the other end of this relation
# is ordered with respect to its corresponding GenericForeignKey.
if not cls._meta.abstract:
def make_generic_foreign_order_accessors(related_model, model):
if self._is_matching_generic_foreign_key(
model._meta.order_with_respect_to
):
make_foreign_order_accessors(model, related_model)
lazy_related_operation(
make_generic_foreign_order_accessors,
self.model,
self.remote_field.model,
)
def set_attributes_from_rel(self):
pass
def get_internal_type(self):
return "ManyToManyField"
def get_content_type(self):
"""
Return the content type associated with this field's model.
"""
return ContentType.objects.get_for_model(
self.model, for_concrete_model=self.for_concrete_model
)
def get_extra_restriction(self, alias, remote_alias):
field = self.remote_field.model._meta.get_field(self.content_type_field_name)
contenttype_pk = self.get_content_type().pk
lookup = field.get_lookup("exact")(field.get_col(remote_alias), contenttype_pk)
return WhereNode([lookup], connector=AND)
def bulk_related_objects(self, objs, using=DEFAULT_DB_ALIAS):
"""
Return all objects related to ``objs`` via this ``GenericRelation``.
"""
return self.remote_field.model._base_manager.db_manager(using).filter(
**{
"%s__pk"
% self.content_type_field_name: ContentType.objects.db_manager(using)
.get_for_model(self.model, for_concrete_model=self.for_concrete_model)
.pk,
"%s__in" % self.object_id_field_name: [obj.pk for obj in objs],
}
)
class ReverseGenericManyToOneDescriptor(ReverseManyToOneDescriptor):
"""
Accessor to the related objects manager on the one-to-many relation created
by GenericRelation.
In the example::
class Post(Model):
comments = GenericRelation(Comment)
``post.comments`` is a ReverseGenericManyToOneDescriptor instance.
"""
@cached_property
def related_manager_cls(self):
return create_generic_related_manager(
self.rel.model._default_manager.__class__,
self.rel,
)
def create_generic_related_manager(superclass, rel):
"""
Factory function to create a manager that subclasses another manager
(generally the default manager of a given model) and adds behaviors
specific to generic relations.
"""
class GenericRelatedObjectManager(superclass, AltersData):
def __init__(self, instance=None):
super().__init__()
self.instance = instance
self.model = rel.model
self.get_content_type = functools.partial(
ContentType.objects.db_manager(instance._state.db).get_for_model,
for_concrete_model=rel.field.for_concrete_model,
)
self.content_type = self.get_content_type(instance)
self.content_type_field_name = rel.field.content_type_field_name
self.object_id_field_name = rel.field.object_id_field_name
self.prefetch_cache_name = rel.field.attname
self.pk_val = instance.pk
self.core_filters = {
"%s__pk" % self.content_type_field_name: self.content_type.id,
self.object_id_field_name: self.pk_val,
}
def __call__(self, *, manager):
manager = getattr(self.model, manager)
manager_class = create_generic_related_manager(manager.__class__, rel)
return manager_class(instance=self.instance)
do_not_call_in_templates = True
def __str__(self):
return repr(self)
def _apply_rel_filters(self, queryset):
"""
Filter the queryset for the instance this manager is bound to.
"""
db = self._db or router.db_for_read(self.model, instance=self.instance)
return queryset.using(db).filter(**self.core_filters)
def _remove_prefetched_objects(self):
try:
self.instance._prefetched_objects_cache.pop(self.prefetch_cache_name)
except (AttributeError, KeyError):
pass # nothing to clear from cache
def get_queryset(self):
try:
return self.instance._prefetched_objects_cache[self.prefetch_cache_name]
except (AttributeError, KeyError):
queryset = super().get_queryset()
return self._apply_rel_filters(queryset)
def get_prefetch_queryset(self, instances, queryset=None):
if queryset is None:
queryset = super().get_queryset()
queryset._add_hints(instance=instances[0])
queryset = queryset.using(queryset._db or self._db)
# Group instances by content types.
content_type_queries = [
models.Q.create(
[
(f"{self.content_type_field_name}__pk", content_type_id),
(f"{self.object_id_field_name}__in", {obj.pk for obj in objs}),
]
)
for content_type_id, objs in itertools.groupby(
sorted(instances, key=lambda obj: self.get_content_type(obj).pk),
lambda obj: self.get_content_type(obj).pk,
)
]
query = models.Q.create(content_type_queries, connector=models.Q.OR)
# We (possibly) need to convert object IDs to the type of the
# instances' PK in order to match up instances:
object_id_converter = instances[0]._meta.pk.to_python
content_type_id_field_name = "%s_id" % self.content_type_field_name
return (
queryset.filter(query),
lambda relobj: (
object_id_converter(getattr(relobj, self.object_id_field_name)),
getattr(relobj, content_type_id_field_name),
),
lambda obj: (obj.pk, self.get_content_type(obj).pk),
False,
self.prefetch_cache_name,
False,
)
def add(self, *objs, bulk=True):
self._remove_prefetched_objects()
db = router.db_for_write(self.model, instance=self.instance)
def check_and_update_obj(obj):
if not isinstance(obj, self.model):
raise TypeError(
"'%s' instance expected, got %r"
% (self.model._meta.object_name, obj)
)
setattr(obj, self.content_type_field_name, self.content_type)
setattr(obj, self.object_id_field_name, self.pk_val)
if bulk:
pks = []
for obj in objs:
if obj._state.adding or obj._state.db != db:
raise ValueError(
"%r instance isn't saved. Use bulk=False or save "
"the object first." % obj
)
check_and_update_obj(obj)
pks.append(obj.pk)
self.model._base_manager.using(db).filter(pk__in=pks).update(
**{
self.content_type_field_name: self.content_type,
self.object_id_field_name: self.pk_val,
}
)
else:
with transaction.atomic(using=db, savepoint=False):
for obj in objs:
check_and_update_obj(obj)
obj.save()
add.alters_data = True
async def aadd(self, *objs, bulk=True):
return await sync_to_async(self.add)(*objs, bulk=bulk)
aadd.alters_data = True
def remove(self, *objs, bulk=True):
if not objs:
return
self._clear(self.filter(pk__in=[o.pk for o in objs]), bulk)
remove.alters_data = True
async def aremove(self, *objs, bulk=True):
return await sync_to_async(self.remove)(*objs, bulk=bulk)
aremove.alters_data = True
def clear(self, *, bulk=True):
self._clear(self, bulk)
clear.alters_data = True
async def aclear(self, *, bulk=True):
return await sync_to_async(self.clear)(bulk=bulk)
aclear.alters_data = True
def _clear(self, queryset, bulk):
self._remove_prefetched_objects()
db = router.db_for_write(self.model, instance=self.instance)
queryset = queryset.using(db)
if bulk:
# `QuerySet.delete()` creates its own atomic block which
# contains the `pre_delete` and `post_delete` signal handlers.
queryset.delete()
else:
with transaction.atomic(using=db, savepoint=False):
for obj in queryset:
obj.delete()
_clear.alters_data = True
def set(self, objs, *, bulk=True, clear=False):
# Force evaluation of `objs` in case it's a queryset whose value
# could be affected by `manager.clear()`. Refs #19816.
objs = tuple(objs)
db = router.db_for_write(self.model, instance=self.instance)
with transaction.atomic(using=db, savepoint=False):
if clear:
self.clear()
self.add(*objs, bulk=bulk)
else:
old_objs = set(self.using(db).all())
new_objs = []
for obj in objs:
if obj in old_objs:
old_objs.remove(obj)
else:
new_objs.append(obj)
self.remove(*old_objs)
self.add(*new_objs, bulk=bulk)
set.alters_data = True
async def aset(self, objs, *, bulk=True, clear=False):
return await sync_to_async(self.set)(objs, bulk=bulk, clear=clear)
aset.alters_data = True
def create(self, **kwargs):
self._remove_prefetched_objects()
kwargs[self.content_type_field_name] = self.content_type
kwargs[self.object_id_field_name] = self.pk_val
db = router.db_for_write(self.model, instance=self.instance)
return super().using(db).create(**kwargs)
create.alters_data = True
async def acreate(self, **kwargs):
return await sync_to_async(self.create)(**kwargs)
acreate.alters_data = True
def get_or_create(self, **kwargs):
kwargs[self.content_type_field_name] = self.content_type
kwargs[self.object_id_field_name] = self.pk_val
db = router.db_for_write(self.model, instance=self.instance)
return super().using(db).get_or_create(**kwargs)
get_or_create.alters_data = True
async def aget_or_create(self, **kwargs):
return await sync_to_async(self.get_or_create)(**kwargs)
aget_or_create.alters_data = True
def update_or_create(self, **kwargs):
kwargs[self.content_type_field_name] = self.content_type
kwargs[self.object_id_field_name] = self.pk_val
db = router.db_for_write(self.model, instance=self.instance)
return super().using(db).update_or_create(**kwargs)
update_or_create.alters_data = True
async def aupdate_or_create(self, **kwargs):
return await sync_to_async(self.update_or_create)(**kwargs)
aupdate_or_create.alters_data = True
return GenericRelatedObjectManager
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/fields.py
|
Python
|
mit
| 29,513 |
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.forms import ModelForm, modelformset_factory
from django.forms.models import BaseModelFormSet
class BaseGenericInlineFormSet(BaseModelFormSet):
"""
A formset for generic inline objects to a parent.
"""
def __init__(
self,
data=None,
files=None,
instance=None,
save_as_new=False,
prefix=None,
queryset=None,
**kwargs,
):
opts = self.model._meta
self.instance = instance
self.rel_name = (
opts.app_label
+ "-"
+ opts.model_name
+ "-"
+ self.ct_field.name
+ "-"
+ self.ct_fk_field.name
)
self.save_as_new = save_as_new
if self.instance is None or self.instance.pk is None:
qs = self.model._default_manager.none()
else:
if queryset is None:
queryset = self.model._default_manager
qs = queryset.filter(
**{
self.ct_field.name: ContentType.objects.get_for_model(
self.instance, for_concrete_model=self.for_concrete_model
),
self.ct_fk_field.name: self.instance.pk,
}
)
super().__init__(queryset=qs, data=data, files=files, prefix=prefix, **kwargs)
def initial_form_count(self):
if self.save_as_new:
return 0
return super().initial_form_count()
@classmethod
def get_default_prefix(cls):
opts = cls.model._meta
return (
opts.app_label
+ "-"
+ opts.model_name
+ "-"
+ cls.ct_field.name
+ "-"
+ cls.ct_fk_field.name
)
def save_new(self, form, commit=True):
setattr(
form.instance,
self.ct_field.get_attname(),
ContentType.objects.get_for_model(self.instance).pk,
)
setattr(form.instance, self.ct_fk_field.get_attname(), self.instance.pk)
return form.save(commit=commit)
def generic_inlineformset_factory(
model,
form=ModelForm,
formset=BaseGenericInlineFormSet,
ct_field="content_type",
fk_field="object_id",
fields=None,
exclude=None,
extra=3,
can_order=False,
can_delete=True,
max_num=None,
formfield_callback=None,
validate_max=False,
for_concrete_model=True,
min_num=None,
validate_min=False,
absolute_max=None,
can_delete_extra=True,
):
"""
Return a ``GenericInlineFormSet`` for the given kwargs.
You must provide ``ct_field`` and ``fk_field`` if they are different from
the defaults ``content_type`` and ``object_id`` respectively.
"""
opts = model._meta
# if there is no field called `ct_field` let the exception propagate
ct_field = opts.get_field(ct_field)
if (
not isinstance(ct_field, models.ForeignKey)
or ct_field.remote_field.model != ContentType
):
raise Exception("fk_name '%s' is not a ForeignKey to ContentType" % ct_field)
fk_field = opts.get_field(fk_field) # let the exception propagate
exclude = [*(exclude or []), ct_field.name, fk_field.name]
FormSet = modelformset_factory(
model,
form=form,
formfield_callback=formfield_callback,
formset=formset,
extra=extra,
can_delete=can_delete,
can_order=can_order,
fields=fields,
exclude=exclude,
max_num=max_num,
validate_max=validate_max,
min_num=min_num,
validate_min=validate_min,
absolute_max=absolute_max,
can_delete_extra=can_delete_extra,
)
FormSet.ct_field = ct_field
FormSet.ct_fk_field = fk_field
FormSet.for_concrete_model = for_concrete_model
return FormSet
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/forms.py
|
Python
|
mit
| 3,956 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# F Wolff <friedel@translate.org.za>, 2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2019-01-04 18:49+0000\n"
"Last-Translator: F Wolff <friedel@translate.org.za>\n"
"Language-Team: Afrikaans (http://www.transifex.com/django/django/language/"
"af/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: af\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Inhoudtipes"
msgid "python model class name"
msgstr "python-modelklasnaam"
msgid "content type"
msgstr "inhoudtipe"
msgid "content types"
msgstr "inhoudtipes"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Inhoudtipe %(ct_id)s-objek het geen geassosieerde model nie"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "Inhoudtipe %(ct_id)s-objek %(obj_id)s bestaan nie"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s-objekte het nie 'n get_absolute_url()-metode nie"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/af/LC_MESSAGES/django.po
|
po
|
mit
| 1,244 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Bashar Al-Abdulhadi, 2014
# Jannis Leidel <jannis@leidel.info>, 2011
# AlMeer <mohammad.almeer@gmail.com>, 2014
# Muaaz Alsaied, 2020
# صفا الفليج <safaalfulaij@hotmail.com>, 2020
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-04-06 19:57+0000\n"
"Last-Translator: صفا الفليج <safaalfulaij@hotmail.com>\n"
"Language-Team: Arabic (http://www.transifex.com/django/django/language/ar/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ar\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
msgid "Content Types"
msgstr "أنواع المحتوى"
msgid "python model class name"
msgstr "اسم صنف النموذج في بايثون"
msgid "content type"
msgstr "نوع المحتوى"
msgid "content types"
msgstr "أنواع المحتوى"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "ليس لكائن نوع المحتوى %(ct_id)s أيّ نموذج مرتبط"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "كائن نوع المحتوى %(ct_id)s بالمعرّف %(obj_id)s غير موجود"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "ليس لكائنات %(ct_name)s الدالة التابِعة get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ar/LC_MESSAGES/django.po
|
po
|
mit
| 1,634 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Riterix <infosrabah@gmail.com>, 2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-12-14 18:35+0000\n"
"Last-Translator: Riterix <infosrabah@gmail.com>\n"
"Language-Team: Arabic (Algeria) (http://www.transifex.com/django/django/"
"language/ar_DZ/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ar_DZ\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
msgid "Content Types"
msgstr "نوع المحتوى"
msgid "python model class name"
msgstr "اسم صنف النموذج في python"
msgid "content type"
msgstr "نوع البيانات"
msgid "content types"
msgstr "أنواع البيانات"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "لا يوجد كائن مرتبط بنوع البيانات %(ct_id)s ."
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "نوع المحتوى %(ct_id)s الكائن %(obj_id)s غير موجود"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "%(ct_name)s كائن لا يحتوي على دالة get_absolute_url() ."
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ar_DZ/LC_MESSAGES/django.po
|
po
|
mit
| 1,447 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Ḷḷumex03 <tornes@opmbx.org>, 2014
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-20 02:41+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Asturian (http://www.transifex.com/django/django/language/"
"ast/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ast\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr "nome de modelu de clas python"
msgid "content type"
msgstr "triba de conteníu"
msgid "content types"
msgstr "tribes de conteníu"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr ""
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr ""
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ast/LC_MESSAGES/django.po
|
po
|
mit
| 1,088 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Ali Ismayilov <ali@ismailov.info>, 2011
# Emin Mastizada <emin@linux.com>, 2020
# Emin Mastizada <emin@linux.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-01-12 07:28+0000\n"
"Last-Translator: Emin Mastizada <emin@linux.com>\n"
"Language-Team: Azerbaijani (http://www.transifex.com/django/django/language/"
"az/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: az\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Məzmun Növləri"
msgid "python model class name"
msgstr "python modelinin sinif (class) adı"
msgid "content type"
msgstr "məzmun tipi"
msgid "content types"
msgstr "məzmun tipləri"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "%(ct_id)s Məzmun növü obyektinə bağlı model yoxdur"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "%(ct_id)s məzmun növlü %(obj_id)s obyekti mövcut deyil"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "%(ct_name)s obyektlərinin get_absolute_url() metodu yoxdur"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/az/LC_MESSAGES/django.po
|
po
|
mit
| 1,359 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Viktar Palstsiuk <vipals@gmail.com>, 2015
# znotdead <zhirafchik@gmail.com>, 2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-10-16 18:24+0000\n"
"Last-Translator: znotdead <zhirafchik@gmail.com>\n"
"Language-Team: Belarusian (http://www.transifex.com/django/django/language/"
"be/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: be\n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n"
"%100>=11 && n%100<=14)? 2 : 3);\n"
msgid "Content Types"
msgstr "Тыпы кантэнту"
msgid "python model class name"
msgstr "назва клясы пітонавае мадэлі"
msgid "content type"
msgstr "від зьмесьціва"
msgid "content types"
msgstr "віды зьмесьціва"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Аб’ект са зьмесьцівам віду %(ct_id)s не зьвязалі з мадэльлю"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Аб’ект %(obj_id)s са зьмесьцівам віду %(ct_id)s не існуе"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Аб’екты %(ct_name)s ня маюць спосабу «get_absolute_url()»"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/be/LC_MESSAGES/django.po
|
po
|
mit
| 1,615 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# arneatec <arneatec@gmail.com>, 2022
# Boris Chervenkov <office@sentido.bg>, 2012
# Georgi Kostadinov <grgkostadinov@gmail.com>, 2012
# Jannis Leidel <jannis@leidel.info>, 2011
# vestimir <vestimir@gmail.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2022-01-13 18:20+0000\n"
"Last-Translator: arneatec <arneatec@gmail.com>\n"
"Language-Team: Bulgarian (http://www.transifex.com/django/django/language/"
"bg/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: bg\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Типове съдържание"
msgid "python model class name"
msgstr "име на класа на модела в Python"
msgid "content type"
msgstr "тип на съдържанието"
msgid "content types"
msgstr "типове съдържание"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Обект с тип на съдържанието %(ct_id)s няма асоцииран модел."
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Обект %(obj_id)s с тип на съдържанието %(ct_id)s не съществува."
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "%(ct_name)s обекти нямат метода get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/bg/LC_MESSAGES/django.po
|
po
|
mit
| 1,613 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Tahmid Rafi <rafi.tahmid@gmail.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Tahmid Rafi <rafi.tahmid@gmail.com>\n"
"Language-Team: Bengali (http://www.transifex.com/django/django/language/"
"bn/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: bn\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "কনটেন্ট টাইপসমূহ"
msgid "python model class name"
msgstr "পাইথন মডেল ক্লাসের নাম"
msgid "content type"
msgstr "কনটেন্ট টাইপ"
msgid "content types"
msgstr "কনটেন্ট টাইপ সমূহ"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "কনটেন্ট টাইপ %(ct_id)s অবজেক্টের সাথে সংযুক্ত কোনো মডেল নেই"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr ""
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s অবজেক্টের কোনো get_absolute_url() মেথড নেই"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/bn/LC_MESSAGES/django.po
|
po
|
mit
| 1,491 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Irriep Nala Novram <allannkorh@yahoo.fr>, 2018-2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2019-03-12 14:31+0000\n"
"Last-Translator: Irriep Nala Novram <allannkorh@yahoo.fr>\n"
"Language-Team: Breton (http://www.transifex.com/django/django/language/br/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: br\n"
"Plural-Forms: nplurals=5; plural=((n%10 == 1) && (n%100 != 11) && (n%100 !"
"=71) && (n%100 !=91) ? 0 :(n%10 == 2) && (n%100 != 12) && (n%100 !=72) && (n"
"%100 !=92) ? 1 :(n%10 ==3 || n%10==4 || n%10==9) && (n%100 < 10 || n% 100 > "
"19) && (n%100 < 70 || n%100 > 79) && (n%100 < 90 || n%100 > 99) ? 2 :(n != 0 "
"&& n % 1000000 == 0) ? 3 : 4);\n"
msgid "Content Types"
msgstr "Doareoù endalc'had"
msgid "python model class name"
msgstr "anv klas model python"
msgid "content type"
msgstr "doare endalc'had"
msgid "content types"
msgstr "doareoù endalc'had"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Doare endalc'had an objed %(ct_id)s n'eus tamm skouer kevelet gantañ"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "Doare endalc'had %(ct_id)s an objed %(obj_id)s n'eus ket anezhañ"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "An objedoù %(ct_name)s n'o deus ket un hentenn get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/br/LC_MESSAGES/django.po
|
po
|
mit
| 1,613 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Bosnian (http://www.transifex.com/django/django/language/"
"bs/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: bs\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr "ime python klase modela"
msgid "content type"
msgstr "tip sadržaja"
msgid "content types"
msgstr "tipovi sadržaja"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr ""
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr ""
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/bs/LC_MESSAGES/django.po
|
po
|
mit
| 1,151 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Carles Barrobés <carles@barrobes.com>, 2012,2014
# Jannis Leidel <jannis@leidel.info>, 2011
# Manel Clos <manelclos@gmail.com>, 2020
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-04-28 20:05+0000\n"
"Last-Translator: Manel Clos <manelclos@gmail.com>\n"
"Language-Team: Catalan (http://www.transifex.com/django/django/language/"
"ca/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ca\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Tipus de Contingut"
msgid "python model class name"
msgstr "nom de la classe del model en python"
msgid "content type"
msgstr "tipus de contingut"
msgid "content types"
msgstr "tipus de continguts"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "L'objecte del tipus de contingut %(ct_id)s no té un model associat"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "L'objecte %(obj_id)s del tipus de contingut %(ct_id)s no existeix"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Els objectes %(ct_name)s no tenen el mètode get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ca/LC_MESSAGES/django.po
|
po
|
mit
| 1,403 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Swara <swara09@gmail.com>, 2022
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2023-04-24 19:22+0000\n"
"Last-Translator: Swara <swara09@gmail.com>, 2022\n"
"Language-Team: Central Kurdish (http://www.transifex.com/django/django/"
"language/ckb/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ckb\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "جۆرەکانی ناوەڕۆک"
msgid "python model class name"
msgstr "ناوی پۆلی مۆدێلی پایسۆن"
msgid "content type"
msgstr "جۆری ناوەڕۆک"
msgid "content types"
msgstr "جۆرەکانی ناوەڕۆک"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "ئۆبجێکی جۆری ناوەڕۆکی %(ct_id)s هیچ مۆدێلێکی پەیوەستکراوی نییە"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "جۆری ناوەڕۆکی %(ct_id)s ئۆبجێکتی %(obj_id)s بوونی نیە"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "ئۆبجێکتەکانی %(ct_name)s ڕێچکەی get_absolute_url() ی نیە"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ckb/LC_MESSAGES/django.po
|
po
|
mit
| 1,419 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Vláďa Macek <macek@sandbox.cz>, 2012,2014
# Vláďa Macek <macek@sandbox.cz>, 2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-09-19 09:23+0000\n"
"Last-Translator: Vláďa Macek <macek@sandbox.cz>\n"
"Language-Team: Czech (http://www.transifex.com/django/django/language/cs/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: cs\n"
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n "
"<= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
msgid "Content Types"
msgstr "Typy obsahu"
msgid "python model class name"
msgstr "název třídy modelu v Pythonu"
msgid "content type"
msgstr "typ obsahu"
msgid "content types"
msgstr "typy obsahu"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Typ obsahu %(ct_id)s nemá přidružený model."
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Objekt %(obj_id)s typu obsahu %(ct_id)s neexistuje."
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Objektům typu %(ct_name)s chybí metoda get_absolute_url()."
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/cs/LC_MESSAGES/django.po
|
po
|
mit
| 1,410 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Maredudd ap Gwyndaf <maredudd@maredudd.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-23 18:54+0000\n"
"Last-Translator: Maredudd ap Gwyndaf <maredudd@maredudd.com>\n"
"Language-Team: Welsh (http://www.transifex.com/django/django/language/cy/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: cy\n"
"Plural-Forms: nplurals=4; plural=(n==1) ? 0 : (n==2) ? 1 : (n != 8 && n != "
"11) ? 2 : 3;\n"
msgid "Content Types"
msgstr "Mathau Cynnwys"
msgid "python model class name"
msgstr "end dosbarth model python"
msgid "content type"
msgstr "math cynnwys"
msgid "content types"
msgstr "mathau cynnwys"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Does dim model cysylltiedig gyda gwrthrych math cynnwys %(ct_id)s"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "Nid ydy gwrthrych %(obj_id)s math cynnwys %(ct_id)s yn bodoli"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "Does dim swyddogaeth get_absolute_url() gyda'r gwrthrych %(ct_name)s"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/cy/LC_MESSAGES/django.po
|
po
|
mit
| 1,385 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Erik Wognsen <r4mses@gmail.com>, 2014,2019
# Jannis Leidel <jannis@leidel.info>, 2011
# Kristian Øllegaard <kristian@oellegaard.com>, 2012
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-09-17 18:00+0000\n"
"Last-Translator: Erik Wognsen <r4mses@gmail.com>\n"
"Language-Team: Danish (http://www.transifex.com/django/django/language/da/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: da\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Indholdstyper"
msgid "python model class name"
msgstr "klassenavn i Python-model"
msgid "content type"
msgstr "indholdstype"
msgid "content types"
msgstr "indholdstyper"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Indholdstype %(ct_id)s-objekt har ingen tilhørende model"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Indholdstype %(ct_id)s-objekt %(obj_id)s findes ikke"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr " %(ct_name)s-objekter har ikke en get_absolute_url()-metode"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/da/LC_MESSAGES/django.po
|
po
|
mit
| 1,349 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# André Hagenbruch, 2012
# Jannis Leidel <jannis@leidel.info>, 2011,2013-2014,2020
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-01-17 22:43+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: German (http://www.transifex.com/django/django/language/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Inhaltstypen"
msgid "python model class name"
msgstr "Python Modell-Klassenname"
msgid "content type"
msgstr "Inhaltstyp"
msgid "content types"
msgstr "Inhaltstypen"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Objekt des Inhaltstyps %(ct_id)s hat kein dazugehöriges Modell"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Objekt %(obj_id)s des Inhaltstyps %(ct_id)s ist nicht vorhanden"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr " %(ct_name)s Objekte haben keine get_absolute_url ()-Methode"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/de/LC_MESSAGES/django.po
|
po
|
mit
| 1,308 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Michael Wolf <milupo@sorbzilla.de>, 2016,2020
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-02-25 16:03+0000\n"
"Last-Translator: Michael Wolf <milupo@sorbzilla.de>\n"
"Language-Team: Lower Sorbian (http://www.transifex.com/django/django/"
"language/dsb/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: dsb\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
"%100==4 ? 2 : 3);\n"
msgid "Content Types"
msgstr "Wopśimjeśowe typy"
msgid "python model class name"
msgstr "klasowe mě pythonowe modela"
msgid "content type"
msgstr "wopśimjeśowy typ"
msgid "content types"
msgstr "wopśimjeśowe typy"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Objekt wopśimjeśowego typa %(ct_id)s njama zwězany model"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Objekt %(obj_id)s wopśimjeśowego typa %(ct_id)s njeeksistěrujo"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Objekty %(ct_name)s njamaju metodu get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/dsb/LC_MESSAGES/django.po
|
po
|
mit
| 1,355 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Nikolas Demiridis <nikolas@demiridis.gr>, 2014
# Pãnoș <panos.laganakos@gmail.com>, 2014
# Pãnoș <panos.laganakos@gmail.com>, 2016,2020
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-05-04 07:05+0000\n"
"Last-Translator: Pãnoș <panos.laganakos@gmail.com>\n"
"Language-Team: Greek (http://www.transifex.com/django/django/language/el/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: el\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Τύποι Περιεχομένου"
msgid "python model class name"
msgstr "όνομα κλάσης μοντέλου python"
msgid "content type"
msgstr "τύπος περιεχομένου"
msgid "content types"
msgstr "τύποι περιεχομένου"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
"Το αντικείμενο %(ct_id)s τύπου περιεχομένου δεν έχει συσχετισμένο μοντέλο"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Το αντικείμενο %(obj_id)s τύπου περιεχομένου %(ct_id)s δεν υπάρχει"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "τα αντικείμενα %(ct_name)s δεν έχουν μέθοδο get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/el/LC_MESSAGES/django.po
|
po
|
mit
| 1,643 |
# This file is distributed under the same license as the Django package.
#
msgid ""
msgstr ""
"Project-Id-Version: Django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2010-05-13 15:35+0200\n"
"Last-Translator: Django team\n"
"Language-Team: English <en@li.org>\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: contrib/contenttypes/apps.py:16
msgid "Content Types"
msgstr ""
#: contrib/contenttypes/models.py:135
msgid "python model class name"
msgstr ""
#: contrib/contenttypes/models.py:139
msgid "content type"
msgstr ""
#: contrib/contenttypes/models.py:140
msgid "content types"
msgstr ""
#: contrib/contenttypes/views.py:18
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
#: contrib/contenttypes/views.py:24
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr ""
#: contrib/contenttypes/views.py:32
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr ""
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/en/LC_MESSAGES/django.po
|
po
|
mit
| 1,110 |
# This file is distributed under the same license as the Django package.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2014-10-05 20:11+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: English (Australia) (http://www.transifex.com/projects/p/"
"django/language/en_AU/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en_AU\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr ""
msgid "content type"
msgstr ""
msgid "content types"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr ""
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr ""
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/en_AU/LC_MESSAGES/django.po
|
po
|
mit
| 1,001 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# jon_atkinson <jon@jonatkinson.co.uk>, 2011
# Ross Poulton <ross@rossp.org>, 2012
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: English (United Kingdom) (http://www.transifex.com/django/"
"django/language/en_GB/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en_GB\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr "python model class name"
msgid "content type"
msgstr "content type"
msgid "content types"
msgstr "content types"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Content type %(ct_id)s object has no associated model"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "Content type %(ct_id)s object %(obj_id)s doesn't exist"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s objects don't have a get_absolute_url() method"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/en_GB/LC_MESSAGES/django.po
|
po
|
mit
| 1,298 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Batist D 🐍 <baptiste+transifex@darthenay.fr>, 2014
# Meiyer <interdist+translations@gmail.com>, 2022
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2022-04-24 19:22+0000\n"
"Last-Translator: Meiyer <interdist+translations@gmail.com>, 2022\n"
"Language-Team: Esperanto (http://www.transifex.com/django/django/language/"
"eo/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: eo\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Enhavaj tipoj"
msgid "python model class name"
msgstr "klasa nomo de pitona modelo"
msgid "content type"
msgstr "enhava tipo"
msgid "content types"
msgstr "enhavaj tipoj"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Objekto kun enhava tipo %(ct_id)s ne havas modelojn asociitajn kun ĝi"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Objekto %(obj_id)s kun enhava tipo %(ct_id)s ne ekzistas"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Objektoj %(ct_name)s ne havas metodon get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/eo/LC_MESSAGES/django.po
|
po
|
mit
| 1,350 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Antoni Aloy <aaloy@apsl.net>, 2012
# Jannis Leidel <jannis@leidel.info>, 2011
# Josue Naaman Nistal Guerra <josuenistal@hotmail.com>, 2014
# Uriel Medina <urimeba511@gmail.com>, 2020
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-09-25 17:13+0000\n"
"Last-Translator: Uriel Medina <urimeba511@gmail.com>\n"
"Language-Team: Spanish (http://www.transifex.com/django/django/language/"
"es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Tipos de contenido"
msgid "python model class name"
msgstr "nombre de la clase modelo de python"
msgid "content type"
msgstr "tipo de contenido"
msgid "content types"
msgstr "tipos de contenido"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
"El objeto de tipo de contenido %(ct_id)s no tiene ningún modelo asociado."
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "El tipo de contenido %(ct_id)s del objeto %(obj_id)s no existe"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "%(ct_name)s objetos no tienen un método get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/es/LC_MESSAGES/django.po
|
po
|
mit
| 1,456 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Ramiro Morales, 2012,2014-2015,2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-10-01 10:21+0000\n"
"Last-Translator: Ramiro Morales\n"
"Language-Team: Spanish (Argentina) (http://www.transifex.com/django/django/"
"language/es_AR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: es_AR\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Tipos de Contenido"
msgid "python model class name"
msgstr "nombre de la clase Python del modelo"
msgid "content type"
msgstr "tipo de contenido"
msgid "content types"
msgstr "tipos de contenido"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "El objeto Tipo de contenido %(ct_id)s no tiene un modelo asociado"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "El objeto Tipo de contenido %(ct_id)s %(obj_id)s no existe"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Los objetos %(ct_name)s no tienen un método get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/es_AR/LC_MESSAGES/django.po
|
po
|
mit
| 1,337 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Carlos Muñoz <cmuozdiaz@outlook.com>, 2015
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-20 03:01+0000\n"
"Last-Translator: Carlos Muñoz <cmuozdiaz@outlook.com>\n"
"Language-Team: Spanish (Colombia) (http://www.transifex.com/django/django/"
"language/es_CO/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: es_CO\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Tipos de contenido"
msgid "python model class name"
msgstr "nombre de la clase modelo de python"
msgid "content type"
msgstr "tipo de contenido"
msgid "content types"
msgstr "tipos de contenido"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
"El objeto de tipo de contenido %(ct_id)s no tiene ningún modelo asociado."
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "El objeto de tipo de contenido %(ct_id)s objeto %(obj_id)s no existe"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "El objeto %(ct_name)s no tiene un método get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/es_CO/LC_MESSAGES/django.po
|
po
|
mit
| 1,338 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Abe Estrada, 2011-2012
# Jesús Bautista <jesbam98@gmail.com>, 2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-12-25 05:47+0000\n"
"Last-Translator: Jesús Bautista <jesbam98@gmail.com>\n"
"Language-Team: Spanish (Mexico) (http://www.transifex.com/django/django/"
"language/es_MX/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: es_MX\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Tipos de Contenido"
msgid "python model class name"
msgstr "nombre de la clase python del modelo"
msgid "content type"
msgstr "tipo de contenido"
msgid "content types"
msgstr "tipos de contenido"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
"Los objetos con el tipo de contenido %(ct_id)s no tienen un modelo asociado"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr ""
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr ""
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/es_MX/LC_MESSAGES/django.po
|
po
|
mit
| 1,237 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Eduardo <edos21@gmail.com>, 2017
# Yoel Acevedo, 2017
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-20 03:01+0000\n"
"Last-Translator: Eduardo <edos21@gmail.com>\n"
"Language-Team: Spanish (Venezuela) (http://www.transifex.com/django/django/"
"language/es_VE/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: es_VE\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Tipos de contenido"
msgid "python model class name"
msgstr "nombre de la clase del modelo de python"
msgid "content type"
msgstr "tipo de contenido"
msgid "content types"
msgstr "tipos de contenido"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
"El objeto de tipo de contenido %(ct_id)s no tiene ningún modelo asociado"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "El objeto de tipo de contenido %(ct_id)s objeto %(obj_id)s no existe"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "El objeto %(ct_name)s no tiene un método get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/es_VE/LC_MESSAGES/django.po
|
po
|
mit
| 1,342 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Janno Liivak <jannolii@gmail.com>, 2013
# Marti Raudsepp <marti@juffo.org>, 2014
# Ragnar Rebase <rrebase@gmail.com>, 2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-12-28 01:46+0000\n"
"Last-Translator: Ragnar Rebase <rrebase@gmail.com>\n"
"Language-Team: Estonian (http://www.transifex.com/django/django/language/"
"et/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: et\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Sisutüübid"
msgid "python model class name"
msgstr "pythoni mudeli klassinimi"
msgid "content type"
msgstr "sisutüüp"
msgid "content types"
msgstr "sisutüübid"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Sisutüübi %(ct_id)s objektil puudub seos mudeliga"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Sisutüübi %(ct_id)s objekti %(obj_id)s pole olemas"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "%(ct_name)s objektidel pole get_absolute_url() meetodit"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/et/LC_MESSAGES/django.po
|
po
|
mit
| 1,368 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Aitzol Naberan <anaberan@codesyntax.com>, 2012
# Eneko Illarramendi <eneko@illarra.com>, 2017
# Jannis Leidel <jannis@leidel.info>, 2011
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Eneko Illarramendi <eneko@illarra.com>\n"
"Language-Team: Basque (http://www.transifex.com/django/django/language/eu/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: eu\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Eduki Motak"
msgid "python model class name"
msgstr "python model class izena"
msgid "content type"
msgstr "eduki mota"
msgid "content types"
msgstr "eduki motak"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "%(ct_id)s eduki motak ez dauka lotutako eredurik"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "%(ct_id)s eduki motako %(obj_id)s objekturik ez da existitzen"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s objektuek ez daukate get_absolute_url() metodorik"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/eu/LC_MESSAGES/django.po
|
po
|
mit
| 1,344 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Ali Nikneshan <ali@nikneshan.com>, 2012
# Jannis Leidel <jannis@leidel.info>, 2011
# rahim agh <rahim.aghareb@gmail.com>, 2020
# Reza Mohammadi <reza@teeleh.ir>, 2014
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-05-27 09:31+0000\n"
"Last-Translator: rahim agh <rahim.aghareb@gmail.com>\n"
"Language-Team: Persian (http://www.transifex.com/django/django/language/"
"fa/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: fa\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
msgid "Content Types"
msgstr "نوعهای محتوا"
msgid "python model class name"
msgstr "نام پایتونی کلاس مدل"
msgid "content type"
msgstr "نوع محتوا"
msgid "content types"
msgstr "نوعهای محتوا"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "نوع محتوای %(ct_id)s به هیچ مدلی مرتبط نشده است"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "شیء %(obj_id)s از نمونه محتوای %(ct_id)s وجود ندارد"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "شیء %(ct_name)s متد get_absolute_url() را ندارد"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/fa/LC_MESSAGES/django.po
|
po
|
mit
| 1,471 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Aarni Koskela, 2015,2020
# Jannis Leidel <jannis@leidel.info>, 2011
# Klaus Dahlén <klaus.dahlen@gmail.com>, 2012
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-12-09 06:31+0000\n"
"Last-Translator: Aarni Koskela\n"
"Language-Team: Finnish (http://www.transifex.com/django/django/language/"
"fi/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: fi\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Sisältötyypit"
msgid "python model class name"
msgstr "mallin python-luokan nimi"
msgid "content type"
msgstr "sisältötyyppi"
msgid "content types"
msgstr "sisältötyypit"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Sisältötyypin %(ct_id)s objektiin ei ole liitetty mallia"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Sisältötyypin %(ct_id)s objektia %(obj_id)s ei ole olemassa"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "%(ct_name)s-objekteilla ei ole get_absolute_url()-metodia"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/fi/LC_MESSAGES/django.po
|
po
|
mit
| 1,325 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Claude Paroz <claude@2xlibre.net>, 2014,2019
# Claude Paroz <claude@2xlibre.net>, 2012
# Jannis Leidel <jannis@leidel.info>, 2011
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-09-18 15:50+0000\n"
"Last-Translator: Claude Paroz <claude@2xlibre.net>\n"
"Language-Team: French (http://www.transifex.com/django/django/language/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
msgid "Content Types"
msgstr "Types de contenus"
msgid "python model class name"
msgstr "nom de la classe python du modèle"
msgid "content type"
msgstr "type de contenu"
msgid "content types"
msgstr "types de contenu"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "L'objet type de contenu %(ct_id)s n'a pas de modèle associé"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "L'objet %(obj_id)s du type de contenu %(ct_id)s n’existe pas"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Les objets %(ct_name)s n’ont pas de méthode get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/fr/LC_MESSAGES/django.po
|
po
|
mit
| 1,379 |
# This file is distributed under the same license as the Django package.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2014-10-05 20:13+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Western Frisian (http://www.transifex.com/projects/p/django/"
"language/fy/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: fy\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr ""
msgid "content type"
msgstr ""
msgid "content types"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr ""
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr ""
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/fy/LC_MESSAGES/django.po
|
po
|
mit
| 991 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Luke Blaney <transifex@lukeblaney.co.uk>, 2019
# Michael Thornhill <michael@maithu.com>, 2012
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2019-06-22 21:48+0000\n"
"Last-Translator: Luke Blaney <transifex@lukeblaney.co.uk>\n"
"Language-Team: Irish (http://www.transifex.com/django/django/language/ga/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ga\n"
"Plural-Forms: nplurals=5; plural=(n==1 ? 0 : n==2 ? 1 : n<7 ? 2 : n<11 ? 3 : "
"4);\n"
msgid "Content Types"
msgstr "Cineál Inneachair"
msgid "python model class name"
msgstr "píotón samhail aicme ainm"
msgid "content type"
msgstr "tíopa inneachar "
msgid "content types"
msgstr "tíopaI inneachair"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Ní bhaineann samhail leis an cineál inneachar %(ct_id)s"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "Níl cineál inneachar %(ct_id)s oibiacht %(obj_id)s ann"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "Níl modh get_absolute_url() ag %(ct_name)s oibiachtaí"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ga/LC_MESSAGES/django.po
|
po
|
mit
| 1,408 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# GunChleoc, 2015
# GunChleoc, 2015
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-12-13 12:51+0000\n"
"Last-Translator: GunChleoc\n"
"Language-Team: Gaelic, Scottish (http://www.transifex.com/django/django/"
"language/gd/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: gd\n"
"Plural-Forms: nplurals=4; plural=(n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : "
"(n > 2 && n < 20) ? 2 : 3;\n"
msgid "Content Types"
msgstr "Seòrsaichean susbainte"
msgid "python model class name"
msgstr "ainm clas air modail python"
msgid "content type"
msgstr "seòrsa susbainte"
msgid "content types"
msgstr "seòrsaichean susbainte"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
"Chan eil modail co-cheangailte ris an oibseact le seòrsa susbaint %(ct_id)s"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Chan eil an oibseact %(obj_id)s le seòrsa susbaint %(ct_id)s ann"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Chan eil am modh get_absolute_url() aig na h-oibseactan %(ct_name)s"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/gd/LC_MESSAGES/django.po
|
po
|
mit
| 1,368 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# fonso <fonzzo@gmail.com>, 2013
# Jannis Leidel <jannis@leidel.info>, 2011
# Leandro Regueiro <leandro.regueiro@gmail.com>, 2013
# X Bello <xbello@gmail.com>, 2023
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2023-04-24 19:22+0000\n"
"Last-Translator: X Bello <xbello@gmail.com>, 2023\n"
"Language-Team: Galician (http://www.transifex.com/django/django/language/"
"gl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: gl\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Tipos de Contido"
msgid "python model class name"
msgstr "nome en Python da clase do modelo"
msgid "content type"
msgstr "tipo de contido"
msgid "content types"
msgstr "tipos de contido"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "O obxecto de tipo de contido %(ct_id)s non ten un modelo asociado"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "O obxecto %(obj_id)s con tipo de contido %(ct_id)s non existe"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Os obxectos %(ct_name)s non teñen un método get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/gl/LC_MESSAGES/django.po
|
po
|
mit
| 1,417 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Meir Kriheli <mkriheli@gmail.com>, 2012,2014,2020
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-08-02 13:30+0000\n"
"Last-Translator: Meir Kriheli <mkriheli@gmail.com>\n"
"Language-Team: Hebrew (http://www.transifex.com/django/django/language/he/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: he\n"
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % "
"1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n"
msgid "Content Types"
msgstr "סוגי תוכן"
msgid "python model class name"
msgstr "שם ה־class של מודל פייתון"
msgid "content type"
msgstr "סוג תוכן"
msgid "content types"
msgstr "סוגי תוכן"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "לא משוייך מודל לאובייקט מסוג התוכן %(ct_id)s"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "סוג תוכן %(ct_id)s אובייקט %(obj_id)s אינו קיים"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "אובייקטי %(ct_name)s אינם כוללים מתודת get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/he/LC_MESSAGES/django.po
|
po
|
mit
| 1,486 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Chandan kumar <chandankumar.093047@gmail.com>, 2012
# Jannis Leidel <jannis@leidel.info>, 2011
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Hindi (http://www.transifex.com/django/django/language/hi/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: hi\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr "पैथॉन मॉडल क्लास नाम"
msgid "content type"
msgstr "विषय-सूची प्रकार"
msgid "content types"
msgstr "विषय-सूचियाँ प्रकार"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "सामग्री प्रकार के %(ct_id)s ऑब्जेक्ट कोई संबद्ध मॉडल नहीं है।"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "सामग्री प्रकार %(ct_id)s वस्तु %(obj_id)s मौजूद नहीं है."
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s वस्तुओं की get_absolute_url() विधि नहीं है."
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/hi/LC_MESSAGES/django.po
|
po
|
mit
| 1,577 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Bojan Mihelač <bmihelac@mihelac.org>, 2012
# Jannis Leidel <jannis@leidel.info>, 2011
# Mislav Cimperšak <mislav.cimpersak@gmail.com>, 2015
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Mislav Cimperšak <mislav.cimpersak@gmail.com>\n"
"Language-Team: Croatian (http://www.transifex.com/django/django/language/"
"hr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: hr\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
msgid "Content Types"
msgstr "Tipovi sadržaja"
msgid "python model class name"
msgstr "ime klase (class) python modela"
msgid "content type"
msgstr "tip sadržaja"
msgid "content types"
msgstr "tipovi sadržaja"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Tip sadržaja %(ct_id)s objekt nema pridruženi model"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "Tip sadržaja %(ct_id)s objekt %(obj_id)s ne postoji"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s objekti nemaju get_absolute_url() metodu"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/hr/LC_MESSAGES/django.po
|
po
|
mit
| 1,445 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Michael Wolf <milupo@sorbzilla.de>, 2016,2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-09-21 19:25+0000\n"
"Last-Translator: Michael Wolf <milupo@sorbzilla.de>\n"
"Language-Team: Upper Sorbian (http://www.transifex.com/django/django/"
"language/hsb/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: hsb\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
"%100==4 ? 2 : 3);\n"
msgid "Content Types"
msgstr "Wobsahowe typy"
msgid "python model class name"
msgstr "klasowe mjeno pythonoweho modela"
msgid "content type"
msgstr "wobsahowy typ"
msgid "content types"
msgstr "wobsahowe typy"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Objekt wobsahoweho typa %(ct_id)s nima zwjazany model"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Objekt %(obj_id)s wobsahoweho typa %(ct_id)s njeeksistuje"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Objekty %(ct_name)s nimaja metodu get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/hsb/LC_MESSAGES/django.po
|
po
|
mit
| 1,329 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# András Veres-Szentkirályi, 2016
# Attila Nagy <>, 2012
# Istvan Farkas <istvan.farkas@gmail.com>, 2019
# Jannis Leidel <jannis@leidel.info>, 2011
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-11-18 09:29+0000\n"
"Last-Translator: Istvan Farkas <istvan.farkas@gmail.com>\n"
"Language-Team: Hungarian (http://www.transifex.com/django/django/language/"
"hu/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: hu\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Tartalom típusok"
msgid "python model class name"
msgstr "python modell osztály neve"
msgid "content type"
msgstr "tartalom típusa"
msgid "content types"
msgstr "tartalom típusok"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "A %(ct_id)s tartalomtípus-objektumhoz nincsenek modellek hozzárendelve"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "A(z) %(ct_id)s típusú %(obj_id)s objektum nem létezik"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr ""
"%(ct_name)s objektumok esetén nincs beállítva a get_absolute_url() metódus."
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/hu/LC_MESSAGES/django.po
|
po
|
mit
| 1,427 |
# This file is distributed under the same license as the Django package.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2018-11-01 20:28+0000\n"
"Last-Translator: Ruben Harutyunov <rharutyunov@mail.ru>\n"
"Language-Team: Armenian (http://www.transifex.com/django/django/language/"
"hy/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: hy\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Պարունակության տիպեր"
msgid "python model class name"
msgstr "python մոդելի դասի անուն"
msgid "content type"
msgstr "պարունակության տիպ"
msgid "content types"
msgstr "պարունակության տիպեր"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Պարունակության տիպ %(ct_id)s օբյեկտը չունի իր հետ կապված մոդել"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "Պարունակության տիպ %(ct_id)s %(obj_id)s օբյեկտը գոյություն չունի"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s օբյեկտները չունեն get_absolute_url() մեթոդ"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/hy/LC_MESSAGES/django.po
|
po
|
mit
| 1,421 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Martijn Dekker <mcdutchie@hotmail.com>, 2012,2021
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2021-12-24 19:22+0000\n"
"Last-Translator: Martijn Dekker <mcdutchie@hotmail.com>\n"
"Language-Team: Interlingua (http://www.transifex.com/django/django/language/"
"ia/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ia\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Typos de contento"
msgid "python model class name"
msgstr "nomine del classe del modello Python"
msgid "content type"
msgstr "typo de contento"
msgid "content types"
msgstr "typos de contento"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Le objecto del typo de contento %(ct_id)s non ha un modello associate"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Le objecto %(obj_id)s del typo de contento %(ct_id)s non existe"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Objectos %(ct_name)s non ha un methodo get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ia/LC_MESSAGES/django.po
|
po
|
mit
| 1,318 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Fery Setiawan <gembelweb@gmail.com>, 2020
# Jannis Leidel <jannis@leidel.info>, 2011
# M Asep Indrayana <me@drayanaindra.com>, 2015
# rodin <romihardiyanto@gmail.com>, 2011-2012
# rodin <romihardiyanto@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-02-06 02:33+0000\n"
"Last-Translator: Fery Setiawan <gembelweb@gmail.com>\n"
"Language-Team: Indonesian (http://www.transifex.com/django/django/language/"
"id/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: id\n"
"Plural-Forms: nplurals=1; plural=0;\n"
msgid "Content Types"
msgstr "Jenis Konten"
msgid "python model class name"
msgstr "nama kelas model python"
msgid "content type"
msgstr "tipe konten"
msgid "content types"
msgstr "tipe konten"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Tipe konten objek %(ct_id)s tidak memiliki model yang terkait"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Jenis isi %(ct_id)s object %(obj_id)s tidak ada"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "objek %(ct_name)s tidak memiliki metode get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/id/LC_MESSAGES/django.po
|
po
|
mit
| 1,424 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Viko Bartero <inactive+tergrundo@transifex.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-20 01:58+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Ido (http://www.transifex.com/django/django/language/io/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: io\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr "klaso nomo dil python modelo"
msgid "content type"
msgstr "kontenajo tipo"
msgid "content types"
msgstr "kontenajo tipi"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "La objekto kun kontenajo tipo %(ct_id)s ne havas relatita modelo"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "La objekto %(obj_id)s kun kontenajo tipo %(ct_id)s ne existas"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "La objekti %(ct_name)s ne havas get_absolute_url() metodo"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/io/LC_MESSAGES/django.po
|
po
|
mit
| 1,266 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Hafsteinn Einarsson <haffi67@gmail.com>, 2012
# Jannis Leidel <jannis@leidel.info>, 2011
# Thordur Sigurdsson <thordur@ja.is>, 2016,2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-11-20 05:05+0000\n"
"Last-Translator: Thordur Sigurdsson <thordur@ja.is>\n"
"Language-Team: Icelandic (http://www.transifex.com/django/django/language/"
"is/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: is\n"
"Plural-Forms: nplurals=2; plural=(n % 10 != 1 || n % 100 == 11);\n"
msgid "Content Types"
msgstr "Efnistög"
msgid "python model class name"
msgstr "python eininga klasa nafn"
msgid "content type"
msgstr "efnistag"
msgid "content types"
msgstr "efnistög"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Gerð innihalds %(ct_id)s hefur ekkert tengt módel"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Gerð innihalds %(ct_id)s hlutar %(obj_id)s er ekki til"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "%(ct_name)s hlutir hafa ekki get_absolute_url () aðferð"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/is/LC_MESSAGES/django.po
|
po
|
mit
| 1,360 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Marco Bonetti, 2014
# Mirco Grillo <mirco.grillomg@gmail.com>, 2020
# Nicola Larosa <transifex@teknico.net>, 2012
# Stefano Brentegani <sbrentegani@gmail.com>, 2015
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-07-23 09:00+0000\n"
"Last-Translator: Mirco Grillo <mirco.grillomg@gmail.com>\n"
"Language-Team: Italian (http://www.transifex.com/django/django/language/"
"it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Content Type"
msgid "python model class name"
msgstr "nome della classe del modello Python"
msgid "content type"
msgstr "content type"
msgid "content types"
msgstr "content type"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "L'oggetto con content type %(ct_id)s non ha alcun modello associato"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "L'oggetto %(obj_id)s con content type %(ct_id)s non esiste"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Gli oggetti %(ct_name)s non hanno un metodo get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/it/LC_MESSAGES/django.po
|
po
|
mit
| 1,457 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Shinya Okano <tokibito@gmail.com>, 2012,2014
# Takuya N <takninnovationresearch@gmail.com>, 2020
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-02-07 16:03+0000\n"
"Last-Translator: Takuya N <takninnovationresearch@gmail.com>\n"
"Language-Team: Japanese (http://www.transifex.com/django/django/language/"
"ja/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ja\n"
"Plural-Forms: nplurals=1; plural=0;\n"
msgid "Content Types"
msgstr "コンテンツタイプ"
msgid "python model class name"
msgstr "Python モデルクラス名"
msgid "content type"
msgstr "コンテンツタイプ"
msgid "content types"
msgstr "コンテンツタイプ"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
"コンテンツタイプ %(ct_id)s のオブジェクトは、関連付けられたモデルを持っていま"
"せん"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "コンテンツタイプ %(ct_id)s のオブジェクト %(obj_id)s は存在しません"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr ""
"%(ct_name)s のオブジェクトは get_absolute_url() メソッドを持っていません"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ja/LC_MESSAGES/django.po
|
po
|
mit
| 1,534 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# André Bouatchidzé <a@anbz.net>, 2013,2015
# Jannis Leidel <jannis@leidel.info>, 2011
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: André Bouatchidzé <a@anbz.net>\n"
"Language-Team: Georgian (http://www.transifex.com/django/django/language/"
"ka/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ka\n"
"Plural-Forms: nplurals=2; plural=(n!=1);\n"
msgid "Content Types"
msgstr "კონტენტის ტიპები"
msgid "python model class name"
msgstr "python-ის მოდელის კლასის სახელი"
msgid "content type"
msgstr "კონტენტის ტიპი"
msgid "content types"
msgstr "კონტენტის ტიპები"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "კონტენტის ტიპის %(ct_id)s ობიექტს არ გააჩნია ასოცირებული მოდელი"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "კონტენტის ტიპის %(ct_id)s ობიექტი %(obj_id)s არ არსებობს"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s ობიექტებს არ გააჩნიათ მეთოდი get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ka/LC_MESSAGES/django.po
|
po
|
mit
| 1,654 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Nurlan Rakhimzhanov <nurlan.rakhimzhanov@gmail.com>, 2011
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Kazakh (http://www.transifex.com/django/django/language/kk/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: kk\n"
"Plural-Forms: nplurals=2; plural=(n!=1);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr "питонның үлгі классның аты"
msgid "content type"
msgstr "мазмұн түрі"
msgid "content types"
msgstr "мазмұн түрлері"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr ""
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr ""
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/kk/LC_MESSAGES/django.po
|
po
|
mit
| 1,130 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Khmer (http://www.transifex.com/django/django/language/km/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: km\n"
"Plural-Forms: nplurals=1; plural=0;\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr "ឈ្មោះ python model class"
msgid "content type"
msgstr "ប្រភេទអត្ថន័យ"
msgid "content types"
msgstr "ប្រភេទអត្ថន័យ"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr ""
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr ""
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/km/LC_MESSAGES/django.po
|
po
|
mit
| 1,123 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Kannada (http://www.transifex.com/django/django/language/"
"kn/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: kn\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr "ಪೈಥಾನ್ ಮಾಡೆಲ್ ಕ್ಲಾಸಿನ ಹೆಸರು"
msgid "content type"
msgstr "ಒಳವಿಷಯದ ಬಗೆ"
msgid "content types"
msgstr "ಒಳವಿಷಯದ ಬಗೆಗಳು"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr ""
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr ""
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/kn/LC_MESSAGES/django.po
|
po
|
mit
| 1,168 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Le Tartuffe <magno79@gmail.com>, 2014
# Yang Chan Woo <oizys18@gmail.com>, 2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-09-17 08:01+0000\n"
"Last-Translator: Yang Chan Woo <oizys18@gmail.com>\n"
"Language-Team: Korean (http://www.transifex.com/django/django/language/ko/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ko\n"
"Plural-Forms: nplurals=1; plural=0;\n"
msgid "Content Types"
msgstr "콘텐츠 타입"
msgid "python model class name"
msgstr "python 모델 클래스 명"
msgid "content type"
msgstr "콘텐츠 타입"
msgid "content types"
msgstr "콘텐츠 타입(들)"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "콘텐츠 타입 %(ct_id)s 객체는 관련 모델이 없습니다"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "콘텐츠 타입 %(ct_id)s객체%(obj_id)s는 존재하지 않습니다."
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "%(ct_name)s객체들은 get_absolute_url() 메소드가 없습니다."
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ko/LC_MESSAGES/django.po
|
po
|
mit
| 1,383 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Soyuzbek Orozbek uulu <soyuzbek196.kg@gmail.com>, 2020
# Soyuzbek Orozbek uulu <soyuzbek196.kg@gmail.com>, 2020
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-05-23 06:00+0000\n"
"Last-Translator: Soyuzbek Orozbek uulu <soyuzbek196.kg@gmail.com>\n"
"Language-Team: Kyrgyz (http://www.transifex.com/django/django/language/ky/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ky\n"
"Plural-Forms: nplurals=1; plural=0;\n"
msgid "Content Types"
msgstr "Мазмун түрү"
msgid "python model class name"
msgstr "питон модел класс ысымы"
msgid "content type"
msgstr "мазмун түрү"
msgid "content types"
msgstr "мазмун түрлөрү"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "%(ct_id)s мазмун түрүнүн өзүнө байланышкан модели жок."
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "%(ct_id)sмазмун түрүнүн %(obj_id)sобектисинде жашабайт."
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "%(ct_name)sобекттеринде get_absolute_url() ыкмасы жок"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ky/LC_MESSAGES/django.po
|
po
|
mit
| 1,465 |
# This file is distributed under the same license as the Django package.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2014-10-05 20:12+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Luxembourgish (http://www.transifex.com/projects/p/django/"
"language/lb/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: lb\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr ""
msgid "content type"
msgstr ""
msgid "content types"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr ""
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr ""
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/lb/LC_MESSAGES/django.po
|
po
|
mit
| 989 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Matas Dailyda <matas@dailyda.com>, 2015
# Simonas Kazlauskas <simonas@kazlauskas.me>, 2012
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Matas Dailyda <matas@dailyda.com>\n"
"Language-Team: Lithuanian (http://www.transifex.com/django/django/language/"
"lt/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: lt\n"
"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < "
"11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? "
"1 : n % 1 != 0 ? 2: 3);\n"
msgid "Content Types"
msgstr "Turinio tipai"
msgid "python model class name"
msgstr "python modelio klasės vardas"
msgid "content type"
msgstr "turinio tipas"
msgid "content types"
msgstr "turinio tipai"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Tūrinio tipo %(ct_id)s objektas neturi priskirto modelio"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "Tūrinio tipo %(ct_id)s objektas %(obj_id)s neegzistuoja"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s objektai neturi get_absolute_url() metodo"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/lt/LC_MESSAGES/django.po
|
po
|
mit
| 1,488 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# NullIsNot0 <nullisnot0@inbox.lv>, 2019
# peterisb <pb@sungis.lv>, 2016
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-11-07 07:19+0000\n"
"Last-Translator: NullIsNot0 <nullisnot0@inbox.lv>\n"
"Language-Team: Latvian (http://www.transifex.com/django/django/language/"
"lv/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: lv\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : "
"2);\n"
msgid "Content Types"
msgstr "Satura tipi"
msgid "python model class name"
msgstr "python modeļa klases nosaukums"
msgid "content type"
msgstr "satura tips"
msgid "content types"
msgstr "satura tipi"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Satura tipa %(ct_id)s objektam nav asociētā modeļa"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Satura tipa %(ct_id)s objekts %(obj_id)s neeksistē"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "%(ct_name)s objekti nesatur get_absolute_url() metodi"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/lv/LC_MESSAGES/django.po
|
po
|
mit
| 1,356 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Vasil Vangelovski <vvangelovski@gmail.com>, 2014
# Vasil Vangelovski <vvangelovski@gmail.com>, 2012
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-23 18:54+0000\n"
"Last-Translator: dekomote <dr.mote@gmail.com>\n"
"Language-Team: Macedonian (http://www.transifex.com/django/django/language/"
"mk/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: mk\n"
"Plural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\n"
msgid "Content Types"
msgstr "Типови содржини"
msgid "python model class name"
msgstr "име на класата за python моделoт"
msgid "content type"
msgstr "тип на содржина"
msgid "content types"
msgstr "типови содржини"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Типот на содржина %(ct_id)s објект нема асоциран модел"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "Типот на содржина %(ct_id)s објект %(obj_id)s не постои"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s објекти немаат get_absolute_url() метод"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/mk/LC_MESSAGES/django.po
|
po
|
mit
| 1,534 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Rajeesh Nair <rajeeshrnair@gmail.com>, 2011-2012
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Malayalam (http://www.transifex.com/django/django/language/"
"ml/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ml\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr "പൈത്തണ് മോഡല് ക്ളാസ്സിന്റെ പേര്"
msgid "content type"
msgstr "ഏതു തരം ഉള്ളടക്കം"
msgid "content types"
msgstr "ഏതൊക്കെ തരം ഉള്ളടക്കം"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "കണ്ടന്റ് ടൈപ്പ് %(ct_id)s വസ്തുവിന് അനുബന്ധമായ മോഡല് ഇല്ല."
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "കണ്ടന്റ് ടൈപ്പ് %(ct_id)s വസ്തു %(obj_id)s നിലവിലില്ല"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s വസ്തുക്കള്ക്ക് get_absolute_url() രീതി ഇല്ല."
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ml/LC_MESSAGES/django.po
|
po
|
mit
| 1,634 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Bayarkhuu Bataa, 2017
# Jannis Leidel <jannis@leidel.info>, 2011
# Zorig <zorig_ezd@yahoo.com>, 2014
# Анхбаяр Анхаа <l.ankhbayar@gmail.com>, 2011-2012
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-10-19 14:01+0000\n"
"Last-Translator: Bayarkhuu Bataa\n"
"Language-Team: Mongolian (http://www.transifex.com/django/django/language/"
"mn/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: mn\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Агуулгын төрөл"
msgid "python model class name"
msgstr "пайтоны моделын классын нэр"
msgid "content type"
msgstr "агуулгын төрөл"
msgid "content types"
msgstr "агуулгын төрлүүд"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "%(ct_id)s төрлийн холбоотой модель олдсонгүй"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "%(ct_id)s төрлийн %(obj_id)s объект олдсонгүй"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr ""
"%(ct_name)s объектууд дээр get_absolute_url() функцийг тодорхойлоогүй байна."
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/mn/LC_MESSAGES/django.po
|
po
|
mit
| 1,525 |
# This file is distributed under the same license as the Django package.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2014-10-05 20:12+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Marathi (http://www.transifex.com/projects/p/django/language/"
"mr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: mr\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr ""
msgid "content type"
msgstr ""
msgid "content types"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr ""
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr ""
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/mr/LC_MESSAGES/django.po
|
po
|
mit
| 983 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jafry Hisham, 2021
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2021-11-16 12:42+0000\n"
"Last-Translator: Jafry Hisham\n"
"Language-Team: Malay (http://www.transifex.com/django/django/language/ms/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ms\n"
"Plural-Forms: nplurals=1; plural=0;\n"
msgid "Content Types"
msgstr "Jenis kandungan"
msgid "python model class name"
msgstr "nama kelas model python"
msgid "content type"
msgstr "jenis kandungan"
msgid "content types"
msgstr "jenis-jenis kandungan"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Jenis kandungan %(ct_id)s tidak mempunyai model yang berkaitan"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Jenis kandungan %(ct_id)s objek %(obj_id)s tidak wujud"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Objek-objek %(ct_name)s tidak mempunyai kaedah get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ms/LC_MESSAGES/django.po
|
po
|
mit
| 1,225 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Yhal Htet Aung <jumoun@gmail.com>, 2013,2015
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Yhal Htet Aung <jumoun@gmail.com>\n"
"Language-Team: Burmese (http://www.transifex.com/django/django/language/"
"my/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: my\n"
"Plural-Forms: nplurals=1; plural=0;\n"
msgid "Content Types"
msgstr "အကြောင်းအရာအမျိုးအစားများ"
msgid "python model class name"
msgstr "စပါးကြီးမော်ဒယ်အမျိုးအစားနာမည်"
msgid "content type"
msgstr "အကြောင်းအရာအမျိုးအစား"
msgid "content types"
msgstr "အကြောင်းအရာအမျိုးအစားများ"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "အကြောင်းအရာအမျိုးအစား %(ct_id)s အရာဝတ္ထုမှာဆက်နွယ်သောမော်ဒယ်မရှိ"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "အကြောင်းအရာအမျိုးအစား %(ct_id)s အရာဝတ္ထု %(obj_id)s မတည်ရှိနေ"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s အရာဝတ္ထုများ get_absolute_url() နည်းလမ်းမရှိ"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/my/LC_MESSAGES/django.po
|
po
|
mit
| 1,732 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# jensadne <jensadne@pvv.ntnu.no>, 2014
# Jon <jon@kolonial.no>, 2020
# Jon <jon@kolonial.no>, 2012
# Sigurd Gartmann <sigurdga-transifex@sigurdga.no>, 2012
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2020-01-21 12:15+0000\n"
"Last-Translator: Jon <jon@kolonial.no>\n"
"Language-Team: Norwegian Bokmål (http://www.transifex.com/django/django/"
"language/nb/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: nb\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Innholdstyper"
msgid "python model class name"
msgstr "python-modellklassenavn"
msgid "content type"
msgstr "innholdstype"
msgid "content types"
msgstr "innholdstyper"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Innholdstype %(ct_id)s objekt har ingen assosiert model"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Innholdstype %(ct_id)s objekt %(obj_id)s finnes ikke"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "%(ct_name)s-objekter har ikke get_absolute_url()-metode"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/nb/LC_MESSAGES/django.po
|
po
|
mit
| 1,403 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Sagar Chalise <chalisesagar@gmail.com>, 2011
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Sagar Chalise <chalisesagar@gmail.com>\n"
"Language-Team: Nepali (http://www.transifex.com/django/django/language/ne/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ne\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "कन्टेन्ट टाइपहरु"
msgid "python model class name"
msgstr "पाइथन मोडेल क्लासको नाम"
msgid "content type"
msgstr "कन्टेन्ट टाइप"
msgid "content types"
msgstr "कन्टेन्ट टाइपहरु"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "कन्टेन्ट टाइप %(ct_id)s वस्तु सँग सम्बन्धित मोडेल छैन ।"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "कन्टेन्ट टाइप %(ct_id)s वस्तु %(obj_id)s छैन ।"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s वस्तुमा get_absolute_url() तरिका छैन ।"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/ne/LC_MESSAGES/django.po
|
po
|
mit
| 1,519 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Harro van der Klauw <hvdklauw@gmail.com>, 2012
# Jannis Leidel <jannis@leidel.info>, 2011
# Sander Steffann <inactive+steffann@transifex.com>, 2015
# Tonnes <tonnes.mb@gmail.com>, 2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-09-17 08:44+0000\n"
"Last-Translator: Tonnes <tonnes.mb@gmail.com>\n"
"Language-Team: Dutch (http://www.transifex.com/django/django/language/nl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: nl\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Inhoudstypen"
msgid "python model class name"
msgstr "klassenaam van pythonmodel"
msgid "content type"
msgstr "inhoudstype"
msgid "content types"
msgstr "inhoudstypen"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Object van inhoudstype %(ct_id)s heeft geen bijbehorend model"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Object %(obj_id)s van inhoudstype %(ct_id)s bestaat niet"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "%(ct_name)s-objecten hebben geen get_absolute_url()-methode"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/nl/LC_MESSAGES/django.po
|
po
|
mit
| 1,396 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# jensadne <jensadne@pvv.ntnu.no>, 2013
# Sivert Olstad, 2021
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2021-10-21 18:49+0000\n"
"Last-Translator: Sivert Olstad\n"
"Language-Team: Norwegian Nynorsk (http://www.transifex.com/django/django/"
"language/nn/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: nn\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr "Innhaldstypar"
msgid "python model class name"
msgstr "python-modell klassenamn"
msgid "content type"
msgstr "innhaldstype"
msgid "content types"
msgstr "innhaldstypar"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Innhaldstype %(ct_id)s-objektet har ingen modell knytta til seg"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Innhaldstype %(ct_id)s-objekt %(obj_id)s eksisterer ikkje"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "%(ct_name)s-objekt har ikkje ein get_absolute_url() metode"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/nn/LC_MESSAGES/django.po
|
po
|
mit
| 1,317 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Soslan Khubulov <inactive+soslan@transifex.com>, 2013
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Ossetic (http://www.transifex.com/django/django/language/"
"os/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: os\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr "python моделы классы ном"
msgid "content type"
msgstr "мидисы хуыз"
msgid "content types"
msgstr "мидисы хуызтӕ"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "%(ct_id)s мидисы хуызы объектӕн ӕмбӕлгӕ модел нӕй"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr "%(ct_id)s мидисы хуызы объект %(obj_id)s нӕй"
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr "%(ct_name)s объекттӕн get_absolute_url() метод нӕй"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/os/LC_MESSAGES/django.po
|
po
|
mit
| 1,334 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-19 16:40+0000\n"
"Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
"Language-Team: Panjabi (Punjabi) (http://www.transifex.com/django/django/"
"language/pa/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: pa\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Content Types"
msgstr ""
msgid "python model class name"
msgstr "ਪਾਈਥਨ ਮਾਡਲ ਕਲਾਸ ਨਾਂ"
msgid "content type"
msgstr "ਸਮੱਗਰੀ ਕਿਸਮ"
msgid "content types"
msgstr "ਸਮੱਗਰੀ ਕਿਸਮ"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr ""
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn't exist"
msgstr ""
#, python-format
msgid "%(ct_name)s objects don't have a get_absolute_url() method"
msgstr ""
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/pa/LC_MESSAGES/django.po
|
po
|
mit
| 1,145 |
# This file is distributed under the same license as the Django package.
#
# Translators:
# sidewinder <adam.klosiu@gmail.com>, 2014
# angularcircle, 2012
# Jannis Leidel <jannis@leidel.info>, 2011
# m_aciek <maciej.olko@gmail.com>, 2019
# Tomasz Kajtoch <tomekkaj@tomekkaj.pl>, 2016
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-08 17:27+0200\n"
"PO-Revision-Date: 2019-11-11 14:09+0000\n"
"Last-Translator: m_aciek <maciej.olko@gmail.com>\n"
"Language-Team: Polish (http://www.transifex.com/django/django/language/pl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: pl\n"
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n"
"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n"
"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
msgid "Content Types"
msgstr "Typy Zawartości"
msgid "python model class name"
msgstr "Nazwa klasy modelu pythona"
msgid "content type"
msgstr "typ zawartości"
msgid "content types"
msgstr "typy zawartości"
#, python-format
msgid "Content type %(ct_id)s object has no associated model"
msgstr "Obiekt typu zawartości %(ct_id)s nie posiada przypisanego modelu"
#, python-format
msgid "Content type %(ct_id)s object %(obj_id)s doesn’t exist"
msgstr "Obiekt %(obj_id)s typu zawartości %(ct_id)s nie istnieje"
#, python-format
msgid "%(ct_name)s objects don’t have a get_absolute_url() method"
msgstr "Obiekty %(ct_name)s nie posiadają metody get_absolute_url()"
|
castiel248/Convert
|
Lib/site-packages/django/contrib/contenttypes/locale/pl/LC_MESSAGES/django.po
|
po
|
mit
| 1,577 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.