{"title":"Tidslinje för avveckling av Django","version":"6.1","locale":"sv","docname":"internals/deprecation","url":"/sv/6.1/internals/deprecation/","canonical":"https://djangodocs.dev/sv/6.1/internals/deprecation/","summary":"Det här dokumentet beskriver när olika delar av Django kommer att tas bort eller ändras på ett bakåtkompatibelt sätt, efter deras avskrivning, enligt…","html":"<h1>Tidslinje för avveckling av Django<a class=\"heading-anchor\" href=\"#django-deprecation-timeline\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>Det här dokumentet beskriver när olika delar av Django kommer att tas bort eller ändras på ett bakåtkompatibelt sätt, efter deras avskrivning, enligt <a class=\"reference internal\" href=\"/sv/6.1/internals/release-process/#internal-release-deprecation-policy\"><span class=\"std std-ref\">deprecation policy</span></a>. Mer information om varje objekt kan ofta hittas i utgivningsanteckningarna för två versioner tidigare.</p>\n<section id=\"deprecation-removed-in-2028\">\n<span id=\"id1\"></span><h2>2028<a class=\"heading-anchor\" href=\"#deprecation-removed-in-2028\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Mer information om dessa ändringar finns i <a class=\"reference internal\" href=\"/sv/6.1/releases/6.0/#deprecated-features-6-0\"><span class=\"std std-ref\">versionsanteckningarna för Django 6.0</span></a>.</p>\n<ul class=\"simple\">\n<li><p>Nyckelordsargumentet <code class=\"docutils literal notranslate\">serialize</code> för <code class=\"docutils literal notranslate\">BaseDatabaseCreation.create_test_db()</code> kommer att tas bort.</p></li>\n<li><p>Klassen <code class=\"docutils literal notranslate\">django.contrib.postgres.aggregates.StringAgg</code> kommer att tas bort.</p></li>\n<li><p>Klassen <code class=\"docutils literal notranslate\">django.contrib.postgres.aggregates.mixins.OrderableAggMixin</code> kommer att tas bort.</p></li>\n<li><p>Standardprotokollet i mallfiltren <code class=\"docutils literal notranslate\">urlize</code> och <code class=\"docutils literal notranslate\">urlizetrunc</code> ändras från HTTP till HTTPS.</p></li>\n<li><p>Övergångsinställningen <code class=\"docutils literal notranslate\">URLIZE_ASSUME_HTTPS</code> kommer att tas bort.</p></li>\n<li><p>Användning av ett procenttecken i ett kolumnalias eller en annotation kommer att generera <code class=\"docutils literal notranslate\">ValueError</code>.</p></li>\n<li><p>Stödet för att ange inställningarna <code class=\"docutils literal notranslate\">ADMINS</code> eller <code class=\"docutils literal notranslate\">MANAGERS</code> som en lista med tupler av typen (namn, adress) kommer att tas bort.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">orphans</code> får inte längre vara större än eller lika med argumentet <code class=\"docutils literal notranslate\">per_page</code> för <code class=\"docutils literal notranslate\">django.core.paginator.Paginator</code> och <code class=\"docutils literal notranslate\">django.core.paginator.AsyncPaginator</code>.</p></li>\n<li><p>API:erna i <a class=\"reference internal\" href=\"/sv/6.1/topics/email/#module-django.core.mail\" title=\"django.core.mail: Helpers to send email.\"><code class=\"xref py py-mod docutils literal notranslate\">django.core.mail</code></a> kommer inte längre att acceptera vissa parametrar som positionsargument. De måste i stället skickas som nyckelordsargument.</p></li>\n<li><p>Stödet för att skicka Pythons äldre e-postobjekt <code class=\"docutils literal notranslate\">email.mime.base.MIMEBase</code> till <code class=\"docutils literal notranslate\">EmailMessage.attach()</code> (eller inkludera ett sådant i meddelandets lista <code class=\"docutils literal notranslate\">attachments</code>) kommer att tas bort.</p></li>\n<li><p>Undantaget <code class=\"docutils literal notranslate\">django.core.mail.BadHeaderError</code> kommer att tas bort.</p></li>\n<li><p>Klasserna <code class=\"docutils literal notranslate\">django.core.mail.SafeMIMEText</code> och <code class=\"docutils literal notranslate\">SafeMIMEMultipart</code> kommer att tas bort.</p></li>\n<li><p>Funktionerna <code class=\"docutils literal notranslate\">django.core.mail.forbid_multi_line_headers()</code> och <code class=\"docutils literal notranslate\">django.core.mail.message.sanitize_address()</code> kommer att tas bort.</p></li>\n</ul>\n<p>Mer information om dessa ändringar finns i <a class=\"reference internal\" href=\"/sv/6.1/releases/6.1/#deprecated-features-6-1\"><span class=\"std std-ref\">versionsanteckningarna för Django 6.1</span></a>.</p>\n<ul class=\"simple\">\n<li><p>Anrop av <a class=\"reference internal\" href=\"/sv/6.1/ref/models/querysets/#django.db.models.query.QuerySet.values_list\" title=\"django.db.models.query.QuerySet.values_list\"><code class=\"xref py py-meth docutils literal notranslate\">QuerySet.values_list()</code></a> med <code class=\"docutils literal notranslate\">flat=True</code> och utan fältnamn kommer att generera <code class=\"docutils literal notranslate\">TypeError</code>.</p></li>\n<li><p>Användning av <code class=\"docutils literal notranslate\">None</code> vid sökning efter ett värde på toppnivå i ett <a class=\"reference internal\" href=\"/sv/6.1/ref/models/fields/#django.db.models.JSONField\" title=\"django.db.models.JSONField\"><code class=\"xref py py-class docutils literal notranslate\">JSONField</code></a> kompileras till SQL-uttrycket <code class=\"docutils literal notranslate\">IS NULL</code>. Använd i stället <a class=\"reference internal\" href=\"/sv/6.1/ref/models/expressions/#django.db.models.JSONNull\" title=\"django.db.models.JSONNull\"><code class=\"xref py py-class docutils literal notranslate\">JSONNull</code></a> för att söka efter JSON-värdet <code class=\"docutils literal notranslate\">null</code>.</p></li>\n<li><p>Konstanten <code class=\"docutils literal notranslate\">django.db.models.fields.BLANK_CHOICE_DASH</code> kommer att tas bort.</p></li>\n<li><p>Övergångsinställningen <code class=\"docutils literal notranslate\">USE_BLANK_CHOICE_DASH</code> kommer att tas bort.</p></li>\n<li><p>Övergångsinställningen <code class=\"docutils literal notranslate\">SIGNED_COOKIE_LEGACY_SALT_FALLBACK</code> kommer att tas bort.</p></li>\n<li><p>Kompatibilitetslagret <code class=\"docutils literal notranslate\">Field.get_placeholder_sql</code> ovanpå den föråldrade metoden <code class=\"docutils literal notranslate\">get_placeholder</code> kommer att tas bort.</p></li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">SQLCompiler.quote_name_unless_alias()</code> kommer att tas bort.</p></li>\n<li><p>Inställningarna <code class=\"docutils literal notranslate\">EMAIL_BACKEND</code>, <code class=\"docutils literal notranslate\">EMAIL_FILE_PATH</code>, <code class=\"docutils literal notranslate\">EMAIL_HOST</code>, <code class=\"docutils literal notranslate\">EMAIL_HOST_PASSWORD</code>, <code class=\"docutils literal notranslate\">EMAIL_HOST_USER</code>, <code class=\"docutils literal notranslate\">EMAIL_PORT</code>, <code class=\"docutils literal notranslate\">EMAIL_USE_TLS</code>, <code class=\"docutils literal notranslate\">EMAIL_USE_SSL</code>, <code class=\"docutils literal notranslate\">EMAIL_SSL_CERTFILE</code>, <code class=\"docutils literal notranslate\">EMAIL_SSL_KEYFILE</code> och <code class=\"docutils literal notranslate\">EMAIL_TIMEOUT</code> kommer att tas bort.</p></li>\n<li><p>Funktionen <code class=\"docutils literal notranslate\">django.core.mail.get_connection()</code> kommer att tas bort.</p></li>\n<li><p>Argumenten <code class=\"docutils literal notranslate\">connection</code>, <code class=\"docutils literal notranslate\">fail_silently</code>, <code class=\"docutils literal notranslate\">auth_user</code> och <code class=\"docutils literal notranslate\">auth_password</code> tas bort från <a class=\"reference internal\" href=\"/sv/6.1/topics/email/#django.core.mail.send_mail\" title=\"django.core.mail.send_mail\"><code class=\"xref py py-func docutils literal notranslate\">send_mail()</code></a>, <a class=\"reference internal\" href=\"/sv/6.1/topics/email/#django.core.mail.send_mass_mail\" title=\"django.core.mail.send_mass_mail\"><code class=\"xref py py-func docutils literal notranslate\">send_mass_mail()</code></a>, <a class=\"reference internal\" href=\"/sv/6.1/topics/email/#django.core.mail.mail_admins\" title=\"django.core.mail.mail_admins\"><code class=\"xref py py-func docutils literal notranslate\">mail_admins()</code></a>, <a class=\"reference internal\" href=\"/sv/6.1/topics/email/#django.core.mail.mail_managers\" title=\"django.core.mail.mail_managers\"><code class=\"xref py py-func docutils literal notranslate\">mail_managers()</code></a>, konstruktorn för <a class=\"reference internal\" href=\"/sv/6.1/topics/email/#django.core.mail.EmailMessage\" title=\"django.core.mail.EmailMessage\"><code class=\"xref py py-class docutils literal notranslate\">EmailMessage</code></a> och <a class=\"reference internal\" href=\"/sv/6.1/topics/email/#django.core.mail.EmailMessage.send\" title=\"django.core.mail.EmailMessage.send\"><code class=\"xref py py-meth docutils literal notranslate\">EmailMessage.send()</code></a>. Stöd för attributet <code class=\"docutils literal notranslate\">EmailMessage.connection</code> tas också bort.</p></li>\n<li><p>Att skapa instanser av klassen <code class=\"docutils literal notranslate\">smtp.EmailBackend</code> direkt kommer inte längre att stödjas, och klassdokumentationen för den backenden tas bort.</p></li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">BaseEmailBackend.__init__()</code> kommer att generera fel för okända nyckelordsargument och sluta stödja <code class=\"docutils literal notranslate\">fail_silently</code>.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">email_backend</code> för <a class=\"reference internal\" href=\"/sv/6.1/ref/logging/#django.utils.log.AdminEmailHandler\" title=\"django.utils.log.AdminEmailHandler\"><code class=\"xref py py-class docutils literal notranslate\">log.AdminEmailHandler</code></a> kommer att tas bort.</p></li>\n<li><p>Klasserna <code class=\"docutils literal notranslate\">django.contrib.postgres.aggregates.BitAnd</code>, <code class=\"docutils literal notranslate\">django.contrib.postgres.aggregates.BitOr</code> och <code class=\"docutils literal notranslate\">django.contrib.postgres.aggregates.BitXor</code> kommer att tas bort.</p></li>\n<li><p>Stödet för variabeluppslag med dubbla punkter, till exempel <code class=\"docutils literal notranslate\">{{ book..title }}</code>, tas bort.</p></li>\n<li><p>Standardvärdet för argumentet <code class=\"docutils literal notranslate\">algorithm</code> i <code class=\"docutils literal notranslate\">django.utils.crypto.salted_hmac()</code> och <code class=\"docutils literal notranslate\">django.core.signing.base64_hmac()</code> ändras från <code class=\"docutils literal notranslate\">&quot;sha1&quot;</code> till <code class=\"docutils literal notranslate\">&quot;sha256&quot;</code>.</p></li>\n<li><p>Anrop av <a class=\"reference internal\" href=\"/sv/6.1/ref/models/querysets/#django.db.models.query.QuerySet.select_related\" title=\"django.db.models.query.QuerySet.select_related\"><code class=\"xref py py-meth docutils literal notranslate\">QuerySet.select_related()</code></a> utan argument kommer att generera <a class=\"reference external\" href=\"https://docs.python.org/3/library/exceptions.html#TypeError\" title=\"(in Python v3.14)\"><code class=\"xref py py-exc docutils literal notranslate\">TypeError</code></a>.</p></li>\n<li><p><a class=\"reference internal\" href=\"/sv/6.1/ref/models/querysets/#django.db.models.query.QuerySet.select_related\" title=\"django.db.models.query.QuerySet.select_related\"><code class=\"xref py py-meth docutils literal notranslate\">QuerySet.select_related()</code></a> kommer att generera <a class=\"reference external\" href=\"https://docs.python.org/3/library/exceptions.html#TypeError\" title=\"(in Python v3.14)\"><code class=\"xref py py-exc docutils literal notranslate\">TypeError</code></a> om värdet <code class=\"docutils literal notranslate\">True</code> skickas, i stället för <a class=\"reference external\" href=\"https://docs.python.org/3/library/exceptions.html#AttributeError\" title=\"(in Python v3.14)\"><code class=\"xref py py-exc docutils literal notranslate\">AttributeError</code></a>.</p></li>\n<li><p><a class=\"reference internal\" href=\"/sv/6.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin\" title=\"django.contrib.admin.ModelAdmin\"><code class=\"xref py py-class docutils literal notranslate\">ModelAdmin</code></a> kommer att generera <a class=\"reference external\" href=\"https://docs.python.org/3/library/exceptions.html#ValueError\" title=\"(in Python v3.14)\"><code class=\"xref py py-exc docutils literal notranslate\">ValueError</code></a> om klassen ärver från den och attributet <a class=\"reference internal\" href=\"/sv/6.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_select_related\" title=\"django.contrib.admin.ModelAdmin.list_select_related\"><code class=\"xref py py-attr docutils literal notranslate\">list_select_related</code></a> är satt till <code class=\"docutils literal notranslate\">True</code>.</p></li>\n<li><p><a class=\"reference internal\" href=\"/sv/6.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin\" title=\"django.contrib.admin.ModelAdmin\"><code class=\"xref py py-class docutils literal notranslate\">ModelAdmin</code></a> kommer att generera <a class=\"reference external\" href=\"https://docs.python.org/3/library/exceptions.html#ValueError\" title=\"(in Python v3.14)\"><code class=\"xref py py-exc docutils literal notranslate\">ValueError</code></a> om dess metod <a class=\"reference internal\" href=\"/sv/6.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_list_select_related\" title=\"django.contrib.admin.ModelAdmin.get_list_select_related\"><code class=\"xref py py-meth docutils literal notranslate\">get_list_select_related()</code></a> returnerar <code class=\"docutils literal notranslate\">True</code>.</p></li>\n<li><p>Stödet för att åsidosätta <code class=\"docutils literal notranslate\">ModelAdmin.get_actions()</code> utan den nya parametern <code class=\"docutils literal notranslate\">action_location</code> kommer att tas bort.</p></li>\n<li><p>Stödet för att packa upp eller indexera ordlistans värden i returvärdet från <code class=\"docutils literal notranslate\">ModelAdmin.get_actions()</code> kommer att tas bort. Använd i stället attribut för <a class=\"reference internal\" href=\"/sv/6.1/ref/contrib/admin/actions/#django.contrib.admin.Action\" title=\"django.contrib.admin.Action\"><code class=\"xref py py-class docutils literal notranslate\">Action</code></a>.</p></li>\n<li><p>Stödet för att åsidosätta <code class=\"docutils literal notranslate\">ModelAdmin.get_action_choices()</code> utan den nya parametern <code class=\"docutils literal notranslate\">action_location</code> kommer att tas bort.</p></li>\n<li><p>Aliaset <code class=\"docutils literal notranslate\">django.db.transaction.savepoint()</code> för <code class=\"docutils literal notranslate\">django.db.transaction.savepoint_create()</code> kommer att tas bort.</p></li>\n<li><p>Stödet för metoderna <code class=\"docutils literal notranslate\">Model.from_db()</code> som inte accepterar nyckelordsargumentet <code class=\"docutils literal notranslate\">fetch_mode</code> kommer att tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-6-1\">\n<span id=\"id2\"></span><h2>6.1<a class=\"heading-anchor\" href=\"#deprecation-removed-in-6-1\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/5.2/#deprecated-features-5-2\"><span class=\"std std-ref\">Django 5.2 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>Nyckelordsargumentet <code class=\"docutils literal notranslate\">all</code> i <code class=\"docutils literal notranslate\">django.contrib.staticfiles.finders.find()</code> kommer att tas bort.</p></li>\n<li><p>Fallbacks till <code class=\"docutils literal notranslate\">request.user</code> och <code class=\"docutils literal notranslate\">request.auser()</code> när <code class=\"docutils literal notranslate\">user</code> är <code class=\"docutils literal notranslate\">None</code> i <code class=\"docutils literal notranslate\">django.contrib.auth.login()</code> respektive <code class=\"docutils literal notranslate\">django.contrib.auth.alogin()</code> kommer att tas bort.</p></li>\n<li><p>Nyckelordsargumentet <code class=\"docutils literal notranslate\">ordering</code> för de PostgreSQL-specifika aggregeringsfunktionerna <code class=\"docutils literal notranslate\">django.contrib.postgres.aggregates.ArrayAgg</code>, <code class=\"docutils literal notranslate\">django.contrib.postgres.aggregates.JSONBAgg</code> och <code class=\"docutils literal notranslate\">django.contrib.postgres.aggregates.StringAgg</code> kommer att tas bort.</p></li>\n<li><p>Stöd för subklasser av <code class=\"docutils literal notranslate\">RemoteUserMiddleware</code> som åsidosätter <code class=\"docutils literal notranslate\">process_request()</code> utan att åsidosätta <code class=\"docutils literal notranslate\">aprocess_request()</code> kommer att tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-6-0\">\n<span id=\"id3\"></span><h2>6.0<a class=\"heading-anchor\" href=\"#deprecation-removed-in-6-0\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/5.0/#deprecated-features-5-0\"><span class=\"std std-ref\">Django 5.0 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>De tillfälliga formgivarna <code class=\"docutils literal notranslate\">DjangoDivFormRenderer</code> och <code class=\"docutils literal notranslate\">Jinja2DivFormRenderer</code> kommer att tas bort.</p></li>\n<li><p>Stöd för att skicka positionella argument till <code class=\"docutils literal notranslate\">BaseConstraint</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">request</code> kommer att krävas i signaturen för <code class=\"docutils literal notranslate\">ModelAdmin.lookup_allowed()</code> subklasser.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.sql.datastructures.Join</code> kommer inte längre att fallbacka till <code class=\"docutils literal notranslate\">get_joining_columns()</code>.</p></li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">get_joining_columns()</code> i <code class=\"docutils literal notranslate\">ForeignObject</code> och <code class=\"docutils literal notranslate\">ForeignObjectRel</code> kommer att tas bort.</p></li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">ForeignObject.get_reverse_joining_columns()</code> kommer att tas bort.</p></li>\n<li><p>Standardschemat för <code class=\"docutils literal notranslate\">forms.URLField</code> ändras från <code class=\"docutils literal notranslate\">&quot;http&quot;</code> till <code class=\"docutils literal notranslate\">&quot;https&quot;</code>.</p></li>\n<li><p>Stöd för att anropa <code class=\"docutils literal notranslate\">format_html()</code> utan att skicka args eller kwargs kommer att tas bort.</p></li>\n<li><p>Stöd för <code class=\"docutils literal notranslate\">cx_Oracle</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">BaseDatabaseOperations.field_cast_sql()</code> kommer att tas bort.</p></li>\n<li><p>Aliaset <code class=\"docutils literal notranslate\">ChoicesMeta</code> till <code class=\"docutils literal notranslate\">django.db.models.enums.ChoicesType</code> kommer att tas bort.</p></li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">Prefetch.get_current_queryset()</code> kommer att tas bort.</p></li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">get_prefetch_queryset()</code> för relaterade hanterare och deskriptorer kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">get_prefetcher()</code> och <code class=\"docutils literal notranslate\">prefetch_related_objects()</code> kommer inte längre att fallbacka till <code class=\"docutils literal notranslate\">get_prefetch_queryset()</code>.</p></li>\n<li><p>Övergångsinställningen <code class=\"docutils literal notranslate\">FORMS_URLFIELD_ASSUME_HTTPS</code> kommer att tas bort.</p></li>\n</ul>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/5.1/#deprecated-features-5-1\"><span class=\"std std-ref\">Django 5.1 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>Metoderna <code class=\"docutils literal notranslate\">ModelAdmin.log_deletion()</code> och <code class=\"docutils literal notranslate\">LogEntryManager.log_action()</code> kommer att tas bort.</p></li>\n<li><p>Den odokumenterade funktionen <code class=\"docutils literal notranslate\">django.utils.itercompat.is_iterable()</code> och modulen <code class=\"docutils literal notranslate\">django.utils.itercompat</code> kommer att tas bort.</p></li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">django.contrib.gis.geoip2.GeoIP2.coords()</code> kommer att tas bort.</p></li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">django.contrib.gis.geoip2.GeoIP2.open()</code> kommer att tas bort.</p></li>\n<li><p>Stöd för att skicka positionella argument till <code class=\"docutils literal notranslate\">Model.save()</code> och <code class=\"docutils literal notranslate\">Model.asave()</code> kommer att tas bort.</p></li>\n<li><p>Settern för <code class=\"docutils literal notranslate\">django.contrib.gis.gdal.OGRGeometry.coord_dim</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.urls.register_converter()</code> kommer inte längre att tillåta åsidosättande av befintliga omvandlare.</p></li>\n<li><p>Nyckelordsargumentet <code class=\"docutils literal notranslate\">check</code> i <code class=\"docutils literal notranslate\">CheckConstraint</code> kommer att tas bort.</p></li>\n<li><p>Attributet <code class=\"docutils literal notranslate\">OS_OPEN_FLAGS</code> för <a class=\"reference internal\" href=\"/sv/6.1/ref/files/storage/#django.core.files.storage.FileSystemStorage\" title=\"django.core.files.storage.FileSystemStorage\"><code class=\"xref py py-class docutils literal notranslate\">FileSystemStorage</code></a> kommer att tas bort.</p></li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">get_cache_name()</code> i <code class=\"docutils literal notranslate\">FieldCacheMixin</code> kommer att tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-5-1\">\n<span id=\"id4\"></span><h2>5.1<a class=\"heading-anchor\" href=\"#deprecation-removed-in-5-1\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/4.2/#deprecated-features-4-2\"><span class=\"std std-ref\">Django 4.2 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>Metoden <code class=\"docutils literal notranslate\">BaseUserManager.make_random_password()</code> kommer att tas bort.</p></li>\n<li><p>Modellens alternativ <code class=\"docutils literal notranslate\">Meta.index_together</code> kommer att tas bort.</p></li>\n<li><p>Mallfiltret <code class=\"docutils literal notranslate\">length_is</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.contrib.auth.hashers.SHA1PasswordHasher</code>, <code class=\"docutils literal notranslate\">django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher</code> och <code class=\"docutils literal notranslate\">django.contrib.auth.hashers.UnsaltedMD5PasswordHasher</code> kommer att tas bort.</p></li>\n<li><p>Modellerna <code class=\"docutils literal notranslate\">django.contrib.postgres.fields.CICharField</code>, <code class=\"docutils literal notranslate\">django.contrib.postgres.fields.CIEmailField</code> och <code class=\"docutils literal notranslate\">django.contrib.postgres.fields.CITextField</code> kommer att tas bort. Stub-fält kommer att finnas kvar för kompatibilitet med historiska migreringar.</p></li>\n<li><p>Mixinen <code class=\"docutils literal notranslate\">django.contrib.postgres.fields.CIText</code> kommer att tas bort.</p></li>\n<li><p>Attributen <code class=\"docutils literal notranslate\">map_width</code> och <code class=\"docutils literal notranslate\">map_height</code> för <code class=\"docutils literal notranslate\">BaseGeometryWidget</code> kommer att tas bort.</p></li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">SimpleTestCase.assertFormsetError()</code> kommer att tas bort.</p></li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">TransactionTestCase.assertQuerysetEqual()</code> kommer att tas bort.</p></li>\n<li><p>Stöd för att skicka kodade JSON-stränglitteraler till <code class=\"docutils literal notranslate\">JSONField</code> och tillhörande uppslagningar och uttryck kommer att tas bort.</p></li>\n<li><p>Stöd för att skicka positionella argument till <code class=\"docutils literal notranslate\">Signer</code> och <code class=\"docutils literal notranslate\">TimestampSigner</code> kommer att tas bort.</p></li>\n<li><p>Inställningarna <code class=\"docutils literal notranslate\">DEFAULT_FILE_STORAGE</code> och <code class=\"docutils literal notranslate\">STATICFILES_STORAGE</code> kommer att tas bort.</p></li>\n<li><p>Funktionen <code class=\"docutils literal notranslate\">django.core.files.storage.get_storage_class()</code> kommer att tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-5-0\">\n<span id=\"id5\"></span><h2>5.0<a class=\"heading-anchor\" href=\"#deprecation-removed-in-5-0\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/4.0/#deprecated-features-4-0\"><span class=\"std std-ref\">Django 4.0 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>Testinställningen <code class=\"docutils literal notranslate\">SERIALIZE</code> kommer att tas bort.</p></li>\n<li><p>Den odokumenterade modulen <code class=\"docutils literal notranslate\">django.utils.baseconv</code> kommer att tas bort.</p></li>\n<li><p>Den odokumenterade modulen <code class=\"docutils literal notranslate\">django.utils.datetime_safe</code> kommer att tas bort.</p></li>\n<li><p>Standardvärdet för inställningen <code class=\"docutils literal notranslate\">USE_TZ</code> kommer att ändras från <code class=\"docutils literal notranslate\">False</code> till <code class=\"docutils literal notranslate\">True</code>.</p></li>\n<li><p>Standardprotokollet för webbplatskartor som byggs upp utanför en begäran ändras från <code class=\"docutils literal notranslate\">'http</code> till <code class=\"docutils literal notranslate\">'https</code>.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">extra_tests</code> för <code class=\"docutils literal notranslate\">DiscoverRunner.build_suite()</code> och <code class=\"docutils literal notranslate\">DiscoverRunner.run_tests()</code> kommer att tas bort.</p></li>\n<li><p>Aggregaten <code class=\"docutils literal notranslate\">django.contrib.postgres.aggregates.ArrayAgg</code>, <code class=\"docutils literal notranslate\">JSONBAgg</code> och <code class=\"docutils literal notranslate\">StringAgg</code> returnerar <code class=\"docutils literal notranslate\">None</code> när det inte finns några rader istället för <code class=\"docutils literal notranslate\">[]</code>, <code class=\"docutils literal notranslate\">[]</code> respektive <code class=\"docutils literal notranslate\">''</code>.</p></li>\n<li><p>Inställningen <code class=\"docutils literal notranslate\">USE_L10N</code> kommer att tas bort.</p></li>\n<li><p>Övergångsinställningen <code class=\"docutils literal notranslate\">USE_DEPRECATED_PYTZ</code> kommer att tas bort.</p></li>\n<li><p>Stöd för tidszonerna <code class=\"docutils literal notranslate\">pytz</code> kommer att tas bort.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">is_dst</code> kommer att tas bort från:</p>\n<ul>\n<li><p><code class=\"docutils literal notranslate\">QuerySet.datetimes()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.timezone.make_aware()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.functions.Trunc()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.functions.TruncSecond()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.functions.TruncMinute()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.functions.TruncHour()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.functions.TruncDay()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.functions.TruncWeek()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.functions.TruncMonth()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.functions.TruncQuarter()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.functions.TruncYear()</code></p></li>\n</ul>\n</li>\n<li><p>Klasserna <code class=\"docutils literal notranslate\">django.contrib.gis.admin.GeoModelAdmin</code> och <code class=\"docutils literal notranslate\">OSMGeoAdmin</code> kommer att tas bort.</p></li>\n<li><p>Den odokumenterade metoden <code class=\"docutils literal notranslate\">BaseForm._html_output()</code> kommer att tas bort.</p></li>\n<li><p>Möjligheten att returnera en <code class=\"docutils literal notranslate\">str</code>, snarare än en <code class=\"docutils literal notranslate\">SafeString</code>, vid rendering av en <code class=\"docutils literal notranslate\">ErrorDict</code> och <code class=\"docutils literal notranslate\">ErrorList</code> kommer att tas bort.</p></li>\n</ul>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/4.1/#deprecated-features-4-1\"><span class=\"std std-ref\">Django 4.1 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>Metoden <code class=\"docutils literal notranslate\">SitemapIndexItem.__str__()</code> kommer att tas bort.</p></li>\n<li><p>Övergångsinställningen <code class=\"docutils literal notranslate\">CSRF_COOKIE_MASKED</code> kommer att tas bort.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">name</code> i <code class=\"docutils literal notranslate\">django.utils.functional.cached_property()</code> kommer att tas bort.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">opclasses</code> i <code class=\"docutils literal notranslate\">django.contrib.postgres.constraints.ExclusionConstraint</code> kommer att tas bort.</p></li>\n<li><p>Den odokumenterade möjligheten att skicka <code class=\"docutils literal notranslate\">errors=None</code> till <code class=\"docutils literal notranslate\">SimpleTestCase.assertFormError()</code> och <code class=\"docutils literal notranslate\">assertFormsetError()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.contrib.sessions.serializers.PickleSerializer</code> kommer att tas bort.</p></li>\n<li><p>Det är inte längre tillåtet att använda <code class=\"docutils literal notranslate\">QuerySet.iterator()</code> på en queryset som hämtar relaterade objekt utan att ange argumentet <code class=\"docutils literal notranslate\">chunk_size</code>.</p></li>\n<li><p>Det kommer inte längre att vara tillåtet att skicka osparade modellinstanser till relaterade filter.</p></li>\n<li><p><code class=\"docutils literal notranslate\">created=True</code> kommer att krävas i signaturen för <code class=\"docutils literal notranslate\">RemoteUserBackend.configure_user()</code> subklasser.</p></li>\n<li><p>Stöd för utloggning via <code class=\"docutils literal notranslate\">GET</code>-förfrågningar i <code class=\"docutils literal notranslate\">django.contrib.auth.views.LogoutView</code> och <code class=\"docutils literal notranslate\">django.contrib.auth.views.logout_then_login()</code> kommer att tas bort.</p></li>\n<li><p>Aliaset <code class=\"docutils literal notranslate\">django.utils.timezone.utc</code> till <code class=\"docutils literal notranslate\">datetime.timezone.utc</code> kommer att tas bort.</p></li>\n<li><p>Det kommer inte längre att vara tillåtet att skicka ett svarsobjekt och ett formulär/formset-namn till <code class=\"docutils literal notranslate\">SimpleTestCase.assertFormError()</code> och <code class=\"docutils literal notranslate\">assertFormsetError()</code>.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.contrib.gis.admin.OpenLayersWidget</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.contrib.auth.hashers.CryptPasswordHasher</code> kommer att tas bort.</p></li>\n<li><p>Mallarna <code class=\"docutils literal notranslate\">&quot;django/forms/default.html&quot;</code> och <code class=\"docutils literal notranslate\">&quot;django/forms/formsets/default.html&quot;</code> kommer att tas bort.</p></li>\n<li><p>Möjligheten att skicka <code class=\"docutils literal notranslate\">nulls_first=False</code> eller <code class=\"docutils literal notranslate\">nulls_last=False</code> till metoderna <code class=\"docutils literal notranslate\">Expression.asc()</code> och <code class=\"docutils literal notranslate\">Expression.desc()</code> samt uttrycket <code class=\"docutils literal notranslate\">OrderBy</code> tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-4-1\">\n<span id=\"id6\"></span><h2>4.1<a class=\"heading-anchor\" href=\"#deprecation-removed-in-4-1\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/3.2/#deprecated-features-3-2\"><span class=\"std std-ref\">Django 3.2 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>Stöd för att tilldela objekt som inte stöder skapande av djupa kopior med <code class=\"docutils literal notranslate\">copy.deepcopy()</code> till klassattribut i <code class=\"docutils literal notranslate\">TestCase.setUpTestData()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">BaseCommand.requires_system_checks</code> stöder inte booleska värden.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">whitelist</code> och attributet <code class=\"docutils literal notranslate\">domain_whitelist</code> i <code class=\"docutils literal notranslate\">django.core.validators.EmailValidator</code> kommer att tas bort.</p></li>\n<li><p>Modulvariabeln <code class=\"docutils literal notranslate\">default_app_config</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">TransactionTestCase.assertQuerysetEqual()</code> kommer inte längre att automatiskt anropa <code class=\"docutils literal notranslate\">repr()</code> på en queryset när den jämförs med strängvärden.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.core.cache.backends.memcached.MemcachedCache</code> kommer att tas bort.</p></li>\n<li><p>Stöd för formatet före Django 3.2 för meddelanden som används av <code class=\"docutils literal notranslate\">django.contrib.messages.storage.cookie.CookieStorage</code> kommer att tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-4-0\">\n<span id=\"id7\"></span><h2>4.0<a class=\"heading-anchor\" href=\"#deprecation-removed-in-4-0\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/3.0/#deprecated-features-3-0\"><span class=\"std std-ref\">Django 3.0 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\">django.utils.http.urlquote()</code>, <code class=\"docutils literal notranslate\">urlquote_plus()</code>, <code class=\"docutils literal notranslate\">urlunquote()</code> och <code class=\"docutils literal notranslate\">urlunquote_plus()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.encoding.force_text()</code> och <code class=\"docutils literal notranslate\">smart_text()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.translation.ugettext()</code>, <code class=\"docutils literal notranslate\">ugettext_lazy()</code>, <code class=\"docutils literal notranslate\">ugettext_noop()</code>, <code class=\"docutils literal notranslate\">ungettext()</code> och <code class=\"docutils literal notranslate\">ungettext_lazy()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.views.i18n.set_language()</code> kommer inte längre att ställa in användarens språk i <code class=\"docutils literal notranslate\">request.session</code> (nyckel <code class=\"docutils literal notranslate\">django.utils.translation.LANGUAGE_SESSION_KEY</code>).</p></li>\n<li><p><code class=\"docutils literal notranslate\">alias=None</code> kommer att krävas i signaturen för <code class=\"docutils literal notranslate\">django.db.models.Expression.get_group_by_cols()</code> subklasser.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.text.unescape_entities()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.http.is_safe_url()</code> kommer att tas bort.</p></li>\n</ul>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/3.1/#deprecated-features-3-1\"><span class=\"std std-ref\">Django 3.1 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>Inställningen <code class=\"docutils literal notranslate\">PASSWORD_RESET_TIMEOUT_DAYS</code> kommer att tas bort.</p></li>\n<li><p>Den odokumenterade användningen av <a class=\"reference internal\" href=\"/sv/6.1/ref/models/querysets/#std-fieldlookup-isnull\"><code class=\"xref std std-lookup docutils literal notranslate\">isnull</code></a> lookup med icke-booleska värden som höger sida kommer inte längre att tillåtas.</p></li>\n<li><p>Undantagsklassen <code class=\"docutils literal notranslate\">django.db.models.query_utils.InvalidQuery</code> kommer att tas bort.</p></li>\n<li><p>Ingångspunkten <code class=\"docutils literal notranslate\">django-admin.py</code> kommer att tas bort.</p></li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">HttpRequest.is_ajax()</code> kommer att tas bort.</p></li>\n<li><p>Stöd för kodningsformatet före Django 3.1 för cookie-värden som används av <code class=\"docutils literal notranslate\">django.contrib.messages.storage.cookie.CookieStorage</code> kommer att tas bort.</p></li>\n<li><p>Stöd för lösenordsåterställningstoken från före Django 3.1 på administratörssidan (som använder SHA-1-hashalgoritmen) kommer att tas bort.</p></li>\n<li><p>Stöd för kodningsformatet för sessioner före Django 3.1 kommer att tas bort.</p></li>\n<li><p>Stöd för signaturer från före Django 3.1 <code class=\"docutils literal notranslate\">django.core.signing.Signer</code> (kodade med SHA-1-algoritmen) kommer att tas bort.</p></li>\n<li><p>Stöd för signaturerna före Django 3.1 <code class=\"docutils literal notranslate\">django.core.signing.dumps()</code> (kodade med SHA-1-algoritmen) i <code class=\"docutils literal notranslate\">django.core.signing.loads()</code> kommer att tas bort.</p></li>\n<li><p>Stöd för användarsessioner före Django 3.1 (som använder SHA-1-algoritmen) kommer att tas bort.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">get_response</code> för <code class=\"docutils literal notranslate\">django.utils.deprecation.MiddlewareMixin.__init__()</code> kommer att krävas och accepterar inte <code class=\"docutils literal notranslate\">None</code>.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">providing_args</code> för <code class=\"docutils literal notranslate\">django.dispatch.Signal</code> kommer att tas bort.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">length</code> för <code class=\"docutils literal notranslate\">django.utils.crypto.get_random_string()</code> kommer att krävas.</p></li>\n<li><p>Meddelandet <code class=\"docutils literal notranslate\">list</code> för <code class=\"docutils literal notranslate\">ModelMultipleChoiceField</code> kommer att tas bort.</p></li>\n<li><p>Stöd för att skicka råa kolumnaliaser till <code class=\"docutils literal notranslate\">QuerySet.order_by()</code> kommer att tas bort.</p></li>\n<li><p>Modellen <code class=\"docutils literal notranslate\">NullBooleanField</code> kommer att tas bort. Ett stub-fält kommer att finnas kvar för kompatibilitet med historiska migreringar.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.conf.urls.url()</code> kommer att tas bort.</p></li>\n<li><p>Modellen <code class=\"docutils literal notranslate\">django.contrib.postgres.fields.JSONField</code> kommer att tas bort. Ett stubbfält kommer att finnas kvar för kompatibilitet med historiska migreringar.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.contrib.postgres.forms.JSONField</code>, <code class=\"docutils literal notranslate\">django.contrib.postgres.fields.jsonb.KeyTransform</code> och <code class=\"docutils literal notranslate\">django.contrib.postgres.fields.jsonb.KeyTextTransform</code> kommer att tas bort.</p></li>\n<li><p>Malltaggarna <code class=\"docutils literal notranslate\">{% ifequal %}</code> och <code class=\"docutils literal notranslate\">{% ifnotequal %}</code> kommer att tas bort.</p></li>\n<li><p>Övergångsinställningen <code class=\"docutils literal notranslate\">DEFAULT_HASHING_ALGORITHM</code> kommer att tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-3-1\">\n<span id=\"id8\"></span><h2>3.1<a class=\"heading-anchor\" href=\"#deprecation-removed-in-3-1\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/2.2/#deprecated-features-2-2\"><span class=\"std std-ref\">Django 2.2 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\">django.utils.timezone.FixedOffset</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.core.paginator.QuerySetPaginator</code> kommer att tas bort.</p></li>\n<li><p>En modells <code class=\"docutils literal notranslate\">Meta.ordering</code> kommer inte längre att påverka <code class=\"docutils literal notranslate\">GROUP BY</code>-frågor.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.contrib.postgres.fields.FloatRangeField</code> och <code class=\"docutils literal notranslate\">django.contrib.postgres.forms.FloatRangeField</code> kommer att tas bort.</p></li>\n<li><p>Inställningen <code class=\"docutils literal notranslate\">FILE_CHARSET</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.contrib.staticfiles.storage.CachedStaticFilesStorage</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">RemoteUserBackend.configure_user()</code> kommer att kräva <code class=\"docutils literal notranslate\">request</code> som det första positionella argumentet.</p></li>\n<li><p>Stöd för <code class=\"docutils literal notranslate\">SimpleTestCase.allow_database_queries</code> och <code class=\"docutils literal notranslate\">TransactionTestCase.multi_db</code> kommer att tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-3-0\">\n<span id=\"id9\"></span><h2>3.0<a class=\"heading-anchor\" href=\"#deprecation-removed-in-3-0\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/2.0/#deprecated-features-2-0\"><span class=\"std std-ref\">Django 2.0 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>Modulen <code class=\"docutils literal notranslate\">django.db.backends.postgresql_psycopg2</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.shortcuts.render_to_response()</code> kommer att tas bort.</p></li>\n<li><p>Inställningen <code class=\"docutils literal notranslate\">DEFAULT_CONTENT_TYPE</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">HttpRequest.xreadlines()</code> kommer att tas bort.</p></li>\n<li><p>Stöd för argumentet <code class=\"docutils literal notranslate\">context</code> i <code class=\"docutils literal notranslate\">Field.from_db_value()</code> och <code class=\"docutils literal notranslate\">Expression.convert_value()</code> kommer att tas bort.</p></li>\n<li><p>Nyckelordsargumentet <code class=\"docutils literal notranslate\">field_name</code> i <code class=\"docutils literal notranslate\">QuerySet.earliest()</code> och <code class=\"docutils literal notranslate\">latest()</code> kommer att tas bort.</p></li>\n</ul>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/2.1/#deprecated-features-2-1\"><span class=\"std std-ref\">Django 2.1 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\">django.contrib.gis.db.models.functions.ForceRHR</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.http.cookie_date()</code> kommer att tas bort.</p></li>\n<li><p>Malltaggbiblioteken <code class=\"docutils literal notranslate\">staticfiles</code> och <code class=\"docutils literal notranslate\">admin_static</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.contrib.staticfiles.templatetags.static()</code> kommer att tas bort.</p></li>\n<li><p>Den shim som tillåter att <code class=\"docutils literal notranslate\">InlineModelAdmin.has_add_permission()</code> definieras utan ett <code class=\"docutils literal notranslate\">obj</code>-argument kommer att tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-2-1\">\n<span id=\"id10\"></span><h2>2.1<a class=\"heading-anchor\" href=\"#deprecation-removed-in-2-1\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/1.11/#deprecated-features-1-11\"><span class=\"std std-ref\">Django 1.11 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\">contrib.auth.views.login()</code>, <code class=\"docutils literal notranslate\">logout()</code>, <code class=\"docutils literal notranslate\">password_change()</code>, <code class=\"docutils literal notranslate\">password_change_done()</code>, <code class=\"docutils literal notranslate\">password_reset()</code>, <code class=\"docutils literal notranslate\">password_reset_done()</code>, <code class=\"docutils literal notranslate\">password_reset_confirm()</code> och <code class=\"docutils literal notranslate\">password_reset_complete()</code> kommer att tas bort.</p></li>\n<li><p>Parametern <code class=\"docutils literal notranslate\">extra_context</code> i <code class=\"docutils literal notranslate\">contrib.auth.views.logout_then_login()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.test.runner.setup_databases()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.translation.string_concat()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.core.cache.backends.memcached.PyLibMCCache</code> kommer inte längre att stödja överföring av <code class=\"docutils literal notranslate\">pylibmc</code> beteendeinställningar som toppnivåattribut för <code class=\"docutils literal notranslate\">OPTIONS</code>.</p></li>\n<li><p>Parametern <code class=\"docutils literal notranslate\">host</code> i <code class=\"docutils literal notranslate\">django.utils.http.is_safe_url()</code> kommer att tas bort.</p></li>\n<li><p>Avstängning av undantag som uppstår vid rendering av malltaggen <code class=\"docutils literal notranslate\">{% include %}</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">DatabaseIntrospection.get_indexes()</code> kommer att tas bort.</p></li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">authenticate()</code> för autentiseringsbackends kräver <code class=\"docutils literal notranslate\">request</code> som det första positionella argumentet.</p></li>\n<li><p>Dekoratorn <code class=\"docutils literal notranslate\">django.db.models.permalink()</code> kommer att tas bort.</p></li>\n<li><p>Inställningen <code class=\"docutils literal notranslate\">USE_ETAGS</code> kommer att tas bort. <code class=\"docutils literal notranslate\">CommonMiddleware</code> och <code class=\"docutils literal notranslate\">django.utils.cache.patch_response_headers()</code> kommer inte längre att ställa in ETags.</p></li>\n<li><p>Attributet <code class=\"docutils literal notranslate\">Model._meta.has_auto_field</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">url()</code>:s stöd för inline-flaggor i grupper av reguljära uttryck (<code class=\"docutils literal notranslate\">(?i)</code>, <code class=\"docutils literal notranslate\">(?L)</code>, <code class=\"docutils literal notranslate\">(?m)</code>, <code class=\"docutils literal notranslate\">(?s)</code> och <code class=\"docutils literal notranslate\">(?u)</code>) kommer att tas bort.</p></li>\n<li><p>Stöd för <code class=\"docutils literal notranslate\">Widget.render()</code>-metoder utan <code class=\"docutils literal notranslate\">renderer</code>-argumentet kommer att tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-2-0\">\n<span id=\"id11\"></span><h2>2.0<a class=\"heading-anchor\" href=\"#deprecation-removed-in-2-0\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/1.9/#deprecated-features-1-9\"><span class=\"std std-ref\">Django 1.9 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>Argumentet <code class=\"docutils literal notranslate\">weak</code> till <code class=\"docutils literal notranslate\">django.dispatch.signals.Signal.disconnect()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.backends.base.BaseDatabaseOperations.check_aggregate_support()</code> kommer att tas bort.</p></li>\n<li><p>Paketet <code class=\"docutils literal notranslate\">django.forms.extras</code> kommer att tas bort.</p></li>\n<li><p>Hjälpen <code class=\"docutils literal notranslate\">assignment_tag</code> kommer att tas bort.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">host</code> till <code class=\"docutils literal notranslate\">assertsRedirects</code> kommer att tas bort. Kompatibilitetslagret som gör att absoluta webbadresser kan betraktas som likvärdiga med relativa när sökvägen är identisk kommer också att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">Field.rel</code> kommer att tas bort.</p></li>\n<li><p>attributet <code class=\"docutils literal notranslate\">Field.remote_field.to</code> kommer att tas bort.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">on_delete</code> för <code class=\"docutils literal notranslate\">ForeignKey</code> och <code class=\"docutils literal notranslate\">OneToOneField</code> kommer att krävas.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.fields.add_lazy_relation()</code> kommer att tas bort.</p></li>\n<li><p>När stöd för tidszoner är aktiverat kommer databasbackends som inte stöder tidszoner inte längre att konvertera medvetna datatider till naiva värden i UTC när sådana värden skickas som parametrar till SQL-frågor som körs utanför ORM, t.ex. med <code class=\"docutils literal notranslate\">cursor.execute()</code>.</p></li>\n<li><p>Dekoratorn <code class=\"docutils literal notranslate\">django.contrib.auth.tests.utils.skipIfCustomUser()</code> kommer att tas bort.</p></li>\n<li><p>Klasserna <code class=\"docutils literal notranslate\">GeoManager</code> och <code class=\"docutils literal notranslate\">GeoQuerySet</code> kommer att tas bort.</p></li>\n<li><p>Modulen <code class=\"docutils literal notranslate\">django.contrib.gis.geoip</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">supports_recursion</code>-kontrollen för mallladdare kommer att tas bort från:</p>\n<ul>\n<li><p><code class=\"docutils literal notranslate\">django.template.engine.Engine.find_template()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.template.loader_tags.ExtendsNode.find_template()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.template.loaders.base.Loader.supports_recursion()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.template.loaders.cached.Loader.supports_recursion()</code></p></li>\n</ul>\n</li>\n<li><p>Mallladdningsmetoderna <code class=\"docutils literal notranslate\">load_template()</code> och <code class=\"docutils literal notranslate\">load_template_sources()</code> kommer att tas bort.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">template_dirs</code> för mallladdare kommer att tas bort:</p>\n<ul>\n<li><p><code class=\"docutils literal notranslate\">django.template.loaders.base.Loader.get_template()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.template.loaders.cached.Loader.cache_key()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.template.loaders.cached.Loader.get_template()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.template.loaders.cached.Loader.get_template_sources()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.template.loaders.filesystem.Loader.get_template_sources()</code></p></li>\n</ul>\n</li>\n<li><p>Metoden <code class=\"docutils literal notranslate\">django.template.loaders.base.Loader.__call__()</code> kommer att tas bort.</p></li>\n<li><p>Stöd för anpassade felvyer med en enda positionell parameter kommer att tas bort.</p></li>\n<li><p>Attributet <code class=\"docutils literal notranslate\">mime_type</code> för <code class=\"docutils literal notranslate\">django.utils.feedgenerator.Atom1Feed</code> och <code class=\"docutils literal notranslate\">django.utils.feedgenerator.RssFeed</code> kommer att tas bort till förmån för <code class=\"docutils literal notranslate\">content_type</code>.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">app_name</code> till <code class=\"docutils literal notranslate\">django.conf.urls.include()</code> kommer att tas bort.</p></li>\n<li><p>Stöd för att skicka en 3-tupel som första argument till <code class=\"docutils literal notranslate\">include()</code> kommer att tas bort.</p></li>\n<li><p>Stöd för att ange en URL-instansnamnrymd utan en applikationsnamnrymd kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">Field._get_val_from_obj()</code> kommer att tas bort till förmån för <code class=\"docutils literal notranslate\">Field.value_from_object()</code>.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.template.loaders.eggs.Loader</code> kommer att tas bort.</p></li>\n<li><p>Parametern <code class=\"docutils literal notranslate\">current_app</code> för vyerna <code class=\"docutils literal notranslate\">contrib.auth</code> kommer att tas bort.</p></li>\n<li><p>Nyckelordsargumentet <code class=\"docutils literal notranslate\">callable_obj</code> till <code class=\"docutils literal notranslate\">SimpleTestCase.assertRaisesMessage()</code> kommer att tas bort.</p></li>\n<li><p>Stöd för attributet <code class=\"docutils literal notranslate\">allow_tags</code> på <code class=\"docutils literal notranslate\">ModelAdmin</code>-metoder kommer att tas bort.</p></li>\n<li><p>Nyckelordsargumentet <code class=\"docutils literal notranslate\">enclosure</code> till <code class=\"docutils literal notranslate\">SyndicationFeed.add_item()</code> kommer att tas bort.</p></li>\n<li><p>Aliasen <code class=\"docutils literal notranslate\">django.template.loader.LoaderOrigin</code> och <code class=\"docutils literal notranslate\">django.template.base.StringOrigin</code> för <code class=\"docutils literal notranslate\">django.template.base.Origin</code> kommer att tas bort.</p></li>\n</ul>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/1.10/#deprecated-features-1-10\"><span class=\"std std-ref\">Django 1.10 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>Alternativet <code class=\"docutils literal notranslate\">makemigrations --exit</code> kommer att tas bort.</p></li>\n<li><p>Stöd för direkt tilldelning till en omvänd främmande nyckel eller en relation mellan många och många kommer att tas bort.</p></li>\n<li><p>Metoderna <code class=\"docutils literal notranslate\">get_srid()</code> och <code class=\"docutils literal notranslate\">set_srid()</code> i <code class=\"docutils literal notranslate\">django.contrib.gis.geos.GEOSGeometry</code> kommer att tas bort.</p></li>\n<li><p>Metoderna <code class=\"docutils literal notranslate\">get_x()</code>, <code class=\"docutils literal notranslate\">set_x()</code>, <code class=\"docutils literal notranslate\">get_y()</code>, <code class=\"docutils literal notranslate\">set_y()</code>, <code class=\"docutils literal notranslate\">get_z()</code> och <code class=\"docutils literal notranslate\">set_z()</code> i <code class=\"docutils literal notranslate\">django.contrib.gis.geos.Point</code> kommer att tas bort.</p></li>\n<li><p>Metoderna <code class=\"docutils literal notranslate\">get_coords()</code> och <code class=\"docutils literal notranslate\">set_coords()</code> i <code class=\"docutils literal notranslate\">django.contrib.gis.geos.Point</code> kommer att tas bort.</p></li>\n<li><p>Egenskapen <code class=\"docutils literal notranslate\">cascaded_union</code> för <code class=\"docutils literal notranslate\">django.contrib.gis.geos.MultiPolygon</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.functional.allow_lazy()</code> kommer att tas bort.</p></li>\n<li><p>Alternativet <code class=\"docutils literal notranslate\">shell --plain</code> kommer att tas bort.</p></li>\n<li><p>Modulen <code class=\"docutils literal notranslate\">django.core.urlresolvers</code> kommer att tas bort.</p></li>\n<li><p>Modellen <code class=\"docutils literal notranslate\">CommaSeparatedIntegerField</code> kommer att tas bort. Ett stub-fält kommer att finnas kvar för kompatibilitet med historiska migreringar.</p></li>\n<li><p>Stöd för mallmetoden <code class=\"docutils literal notranslate\">Context.has_key()</code> kommer att tas bort.</p></li>\n<li><p>Stöd för metoderna <code class=\"docutils literal notranslate\">django.core.files.storage.Storage.accessed_time()</code>, <code class=\"docutils literal notranslate\">created_time()</code> och <code class=\"docutils literal notranslate\">modified_time()</code> kommer att tas bort.</p></li>\n<li><p>Stöd för frågeuppslagningar som använder modellnamnet när <code class=\"docutils literal notranslate\">Meta.default_related_name</code> är inställt kommer att tas bort.</p></li>\n<li><p>Frågeuppslagningen <code class=\"docutils literal notranslate\">__search</code> och metoden <code class=\"docutils literal notranslate\">DatabaseOperations.fulltext_search_sql()</code> kommer att tas bort.</p></li>\n<li><p>Shim för att stödja anpassade relaterade manager-klasser utan en <code class=\"docutils literal notranslate\">_apply_rel_filters()</code>-metod kommer att tas bort.</p></li>\n<li><p>Att använda <code class=\"docutils literal notranslate\">User.is_authenticated()</code> och <code class=\"docutils literal notranslate\">User.is_anonymous()</code> som metoder kommer inte längre att stödjas.</p></li>\n<li><p>Det privata attributet <code class=\"docutils literal notranslate\">virtual_fields</code> i <code class=\"docutils literal notranslate\">Model._meta</code> kommer att tas bort.</p></li>\n<li><p>De privata nyckelordsargumenten <code class=\"docutils literal notranslate\">virtual_only</code> i <code class=\"docutils literal notranslate\">Field.contribute_to_class()</code> och <code class=\"docutils literal notranslate\">virtual</code> i <code class=\"docutils literal notranslate\">Model._meta.add_field()</code> kommer att tas bort.</p></li>\n<li><p>Vyerna <code class=\"docutils literal notranslate\">javascript_catalog()</code> och <code class=\"docutils literal notranslate\">json_catalog()</code> kommer att tas bort.</p></li>\n<li><p>Funktionen <code class=\"docutils literal notranslate\">django.contrib.gis.utils.precision_wkt()</code> kommer att tas bort.</p></li>\n<li><p>I arv med flera tabeller kommer implicit marknadsföring av en <code class=\"docutils literal notranslate\">OneToOneField</code> till en <code class=\"docutils literal notranslate\">parent_link</code> att tas bort.</p></li>\n<li><p>Stöd för <code class=\"docutils literal notranslate\">Widget._format_value()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">FileField</code> metoderna <code class=\"docutils literal notranslate\">get_directory_name()</code> och <code class=\"docutils literal notranslate\">get_filename()</code> kommer att tas bort.</p></li>\n<li><p>Funktionen <code class=\"docutils literal notranslate\">mark_for_escaping()</code> och de klasser den använder: <code class=\"docutils literal notranslate\">EscapeData</code>, <code class=\"docutils literal notranslate\">EscapeBytes</code>, <code class=\"docutils literal notranslate\">EscapeText</code>, <code class=\"docutils literal notranslate\">EscapeString</code> och <code class=\"docutils literal notranslate\">EscapeUnicode</code> kommer att tas bort.</p></li>\n<li><p>Filtret <code class=\"docutils literal notranslate\">escape</code> kommer att ändras till att använda <code class=\"docutils literal notranslate\">django.utils.html.conditional_escape()</code>.</p></li>\n<li><p><code class=\"docutils literal notranslate\">Manager.use_for_related_fields</code> kommer att tas bort.</p></li>\n<li><p>Modellens <code class=\"docutils literal notranslate\">Manager</code>-arv kommer att följa MRO-arvsreglerna och <code class=\"docutils literal notranslate\">Meta.manager_inheritance_from_future</code> för att välja detta beteende kommer att tas bort.</p></li>\n<li><p>Stöd för gammaldags middleware med hjälp av <code class=\"docutils literal notranslate\">settings.MIDDLEWARE_CLASSES</code> kommer att tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-1-10\">\n<span id=\"id12\"></span><h2>1.10<a class=\"heading-anchor\" href=\"#deprecation-removed-in-1-10\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/1.8/#deprecated-features-1-8\"><span class=\"std std-ref\">Django 1.8 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>Stöd för att anropa en <code class=\"docutils literal notranslate\">SQLCompiler</code> direkt som ett alias för att anropa dess <code class=\"docutils literal notranslate\">quote_name_unless_alias</code> -metod kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">cycle</code> och <code class=\"docutils literal notranslate\">firstof</code> malltaggar kommer att tas bort från <code class=\"docutils literal notranslate\">future</code> malltaggsbiblioteket (används under 1.6/1.7 utfasningsperioden).</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.conf.urls.patterns()</code> kommer att tas bort.</p></li>\n<li><p>Stöd för argumentet <code class=\"docutils literal notranslate\">prefix</code> till <code class=\"docutils literal notranslate\">django.conf.urls.i18n.i18n_patterns()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">SimpleTestCase.urls</code> kommer att tas bort.</p></li>\n<li><p>Om man använder ett felaktigt antal uppackade värden i <code class=\"docutils literal notranslate\">for</code>-malltaggen kommer ett undantag att uppstå istället för ett tyst fel.</p></li>\n<li><p>Möjligheten att vända webbadresser som använder en prickad Python-sökväg kommer att tas bort.</p></li>\n<li><p>Möjligheten att använda en prickad Python-sökväg för inställningarna <code class=\"docutils literal notranslate\">LOGIN_URL</code> och <code class=\"docutils literal notranslate\">LOGIN_REDIRECT_URL</code> kommer att tas bort.</p></li>\n<li><p>Stödet för <a class=\"reference external\" href=\"https://docs.python.org/3/library/optparse.html#module-optparse\" title=\"(in Python v3.14)\"><code class=\"xref py py-mod docutils literal notranslate\">optparse</code></a> tas bort för anpassade hanteringskommandon (ersätts av <a class=\"reference external\" href=\"https://docs.python.org/3/library/argparse.html#module-argparse\" title=\"(in Python v3.14)\"><code class=\"xref py py-mod docutils literal notranslate\">argparse</code></a>).</p></li>\n<li><p>Klassen <code class=\"docutils literal notranslate\">django.core.management.NoArgsCommand</code> kommer att tas bort. Använd <a class=\"reference internal\" href=\"/sv/6.1/howto/custom-management-commands/#django.core.management.BaseCommand\" title=\"django.core.management.BaseCommand\"><code class=\"xref py py-class docutils literal notranslate\">BaseCommand</code></a> istället, som inte tar några argument som standard.</p></li>\n<li><p>modulen <code class=\"docutils literal notranslate\">django.core.context_processors</code> kommer att tas bort.</p></li>\n<li><p>modulen <code class=\"docutils literal notranslate\">django.db.models.sql.aggregates</code> kommer att tas bort.</p></li>\n<li><p>modulen <code class=\"docutils literal notranslate\">django.contrib.gis.db.models.sql.aggregates</code> kommer att tas bort.</p></li>\n<li><p>Följande metoder och egenskaper för <code class=\"docutils literal notranslate\">django.db.sql.query.Query</code> kommer att tas bort:</p>\n<ul>\n<li><p>Egenskaper: <code class=\"docutils literal notranslate\">aggregat</code> och <code class=\"docutils literal notranslate\">aggregat_select</code></p></li>\n<li><p>Metoder: <code class=\"docutils literal notranslate\">add_aggregate</code>, <code class=\"docutils literal notranslate\">set_aggregate_mask</code> och <code class=\"docutils literal notranslate\">append_aggregate_mask</code>.</p></li>\n</ul>\n</li>\n<li><p><code class=\"docutils literal notranslate\">django.template.resolve_variable</code> kommer att tas bort.</p></li>\n<li><p>Följande privata API:er kommer att tas bort från <a class=\"reference internal\" href=\"/sv/6.1/ref/models/meta/#django.db.models.options.Options\" title=\"django.db.models.options.Options\"><code class=\"xref py py-class docutils literal notranslate\">django.db.models.options.Options</code></a> (<code class=\"docutils literal notranslate\">Model._meta</code>):</p>\n<ul>\n<li><p><code class=\"docutils literal notranslate\">get_field_by_name()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">get_all_field_names()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">get_fields_with_model()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">get_concrete_fields_with_model()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">get_m2m_with_model()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">get_all_related_objects()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">get_all_related_objects_with_model()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">get_all_related_many_to_many_objects()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">get_all_related_m2m_objects_with_model()</code></p></li>\n</ul>\n</li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">error_message</code> i <code class=\"docutils literal notranslate\">django.forms.RegexField</code> kommer att tas bort.</p></li>\n<li><p>Filtret <code class=\"docutils literal notranslate\">unordered_list</code> stöder inte längre listor i gammal stil.</p></li>\n<li><p>Stöd för sträng-”view”-argument till <code class=\"docutils literal notranslate\">url()</code> kommer att tas bort.</p></li>\n<li><p>Den bakåtkompatibla shim för att byta namn på <code class=\"docutils literal notranslate\">django.forms.Form._has_changed()</code> till <code class=\"docutils literal notranslate\">has_changed()</code> kommer att tas bort.</p></li>\n<li><p>Mallfiltret <code class=\"docutils literal notranslate\">removetags</code> kommer att tas bort.</p></li>\n<li><p>Funktionerna <code class=\"docutils literal notranslate\">remove_tags()</code> och <code class=\"docutils literal notranslate\">strip_entities()</code> i <code class=\"docutils literal notranslate\">django.utils.html</code> kommer att tas bort.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">is_admin_site</code> till <code class=\"docutils literal notranslate\">django.contrib.auth.views.password_reset()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.field.subclassing.SubfieldBase</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.checksums</code> kommer att tas bort; dess funktionalitet ingår i <code class=\"docutils literal notranslate\">django-localflavor</code> 1.1+.</p></li>\n<li><p>Attributet <code class=\"docutils literal notranslate\">original_content_type_id</code> på <code class=\"docutils literal notranslate\">django.contrib.admin.helpers.InlineAdminForm</code> kommer att tas bort.</p></li>\n<li><p>Den bakåtkompatibla shim som tillåter att <code class=\"docutils literal notranslate\">FormMixin.get_form()</code> definieras utan något standardvärde för dess <code class=\"docutils literal notranslate\">form_class</code>-argument kommer att tas bort.</p></li>\n<li><p>Följande inställningar kommer att tas bort:</p>\n<ul>\n<li><p><code class=\"docutils literal notranslate\">TILLÅTET_INKLUDERA_RÖTTER</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">TEMPLATE_KONTEXT_PROCESSORER</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">TEMPLATE_DEBUG</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">TEMPLATE_DIRS</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">TEMPLATE_LADDARE</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">TEMPLATE_STRING_IF_INVALID</code></p></li>\n</ul>\n</li>\n<li><p>Det bakåtkompatibla aliaset <code class=\"docutils literal notranslate\">django.template.loader.BaseLoader</code> kommer att tas bort.</p></li>\n<li><p>Djangos mallobjekt som returneras av <a class=\"reference internal\" href=\"/sv/6.1/topics/templates/#django.template.loader.get_template\" title=\"django.template.loader.get_template\"><code class=\"xref py py-func docutils literal notranslate\">get_template()</code></a> och <a class=\"reference internal\" href=\"/sv/6.1/topics/templates/#django.template.loader.select_template\" title=\"django.template.loader.select_template\"><code class=\"xref py py-func docutils literal notranslate\">select_template()</code></a> kommer inte längre att acceptera en <a class=\"reference internal\" href=\"/sv/6.1/ref/templates/api/#django.template.Context\" title=\"django.template.Context\"><code class=\"xref py py-class docutils literal notranslate\">Context</code></a> i metoden <a class=\"reference internal\" href=\"/sv/6.1/topics/templates/#django.template.backends.base.Template.render\" title=\"django.template.backends.base.Template.render\"><code class=\"xref py py-meth docutils literal notranslate\">render()</code></a>.</p></li>\n<li><p><a class=\"reference internal\" href=\"/sv/6.1/ref/template-response/\"><span class=\"doc\">Template response APIs</span></a> kommer att genomdriva användningen av <a class=\"reference external\" href=\"https://docs.python.org/3/library/stdtypes.html#dict\" title=\"(in Python v3.14)\"><code class=\"xref py py-class docutils literal notranslate\">dict</code></a> och backend-beroende mallobjekt istället för <a class=\"reference internal\" href=\"/sv/6.1/ref/templates/api/#django.template.Context\" title=\"django.template.Context\"><code class=\"xref py py-class docutils literal notranslate\">Context</code></a> respektive <a class=\"reference internal\" href=\"/sv/6.1/ref/templates/api/#django.template.Template\" title=\"django.template.Template\"><code class=\"xref py py-class docutils literal notranslate\">Template</code></a>.</p></li>\n<li><p>Parametern <code class=\"docutils literal notranslate\">current_app</code> för följande funktioner och klasser kommer att tas bort:</p>\n<ul>\n<li><p><code class=\"docutils literal notranslate\">django.shortcuts.render()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.template.Context()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.template.RequestContext()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.template.response.TemplateResponse()</code> ``</p></li>\n</ul>\n</li>\n<li><p>Parametrarna <code class=\"docutils literal notranslate\">dictionary</code> och <code class=\"docutils literal notranslate\">context_instance</code> för följande funktioner kommer att tas bort:</p>\n<ul>\n<li><p><code class=\"docutils literal notranslate\">django.shortcuts.render()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.shortcuts.render_to_response()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.template.loader.render_to_string()</code></p></li>\n</ul>\n</li>\n<li><p>Parametern <code class=\"docutils literal notranslate\">dirs</code> för följande funktioner kommer att tas bort:</p>\n<ul>\n<li><p><code class=\"docutils literal notranslate\">django.template.loader.get_template()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.template.loader.select_template()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.shortcuts.render()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.shortcuts.render_to_response()</code></p></li>\n</ul>\n</li>\n<li><p>Sessionsverifiering kommer att aktiveras oavsett om <code class=\"docutils literal notranslate\">'django.contrib.auth.middleware.SessionAuthenticationMiddleware'</code> finns i <code class=\"docutils literal notranslate\">MIDDLEWARE_CLASSES</code> eller inte.</p></li>\n<li><p>Det privata attributet <code class=\"docutils literal notranslate\">django.db.models.Field.related</code> kommer att tas bort.</p></li>\n<li><p>Alternativet <code class=\"docutils literal notranslate\">--list</code> i hanteringskommandot <code class=\"docutils literal notranslate\">migrate</code> kommer att tas bort.</p></li>\n<li><p>Malltaggen <code class=\"docutils literal notranslate\">ssi</code> kommer att tas bort.</p></li>\n<li><p>Stöd för jämförelseoperatorn <code class=\"docutils literal notranslate\">=</code> i malltaggen <code class=\"docutils literal notranslate\">if</code> kommer att tas bort.</p></li>\n<li><p>De shims för bakåtkompatibilitet som tillåter att <code class=\"docutils literal notranslate\">Storage.get_available_name()</code> och <code class=\"docutils literal notranslate\">Storage.save()</code> definieras utan ett <code class=\"docutils literal notranslate\">max_length</code>-argument kommer att tas bort.</p></li>\n<li><p>Stöd för den äldre syntaxen <code class=\"docutils literal notranslate\">%(&lt;foo&gt;)s</code> i <code class=\"docutils literal notranslate\">ModelFormMixin.success_url</code> kommer att tas bort.</p></li>\n<li><p>aggregatmetoderna <code class=\"docutils literal notranslate\">GeoQuerySet</code> <code class=\"docutils literal notranslate\">collect()</code>, <code class=\"docutils literal notranslate\">extent()</code>, <code class=\"docutils literal notranslate\">extent3d()</code>, <code class=\"docutils literal notranslate\">make_line()</code> och <code class=\"docutils literal notranslate\">unionagg()</code> kommer att tas bort.</p></li>\n<li><p>Möjligheten att ange <code class=\"docutils literal notranslate\">ContentType.name</code> när man skapar en innehållstypsinstans kommer att tas bort.</p></li>\n<li><p>Stöd för den gamla signaturen för <code class=\"docutils literal notranslate\">allow_migrate</code> kommer att tas bort. Det ändrades från <code class=\"docutils literal notranslate\">allow_migrate(self, db, model)</code> till <code class=\"docutils literal notranslate\">allow_migrate(self, db, app_label, model_name=None, **hints)</code>.</p></li>\n<li><p>Stöd för syntaxen <code class=\"docutils literal notranslate\">{% cycle %}</code> som använder kommaseparerade argument kommer att tas bort.</p></li>\n<li><p>Varningen som <a class=\"reference internal\" href=\"/sv/6.1/topics/signing/#django.core.signing.Signer\" title=\"django.core.signing.Signer\"><code class=\"xref py py-class docutils literal notranslate\">Signer</code></a> utfärdar när den får en ogiltig separator kommer att bli ett undantag.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-1-9\">\n<span id=\"id13\"></span><h2>1.9<a class=\"heading-anchor\" href=\"#deprecation-removed-in-1-9\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/1.7/#deprecated-features-1-7\"><span class=\"std std-ref\">Django 1.7 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\">django.utils.dictconfig</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.importlib</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.tzinfo</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.unittest</code> kommer att tas bort.</p></li>\n<li><p>Kommandot <code class=\"docutils literal notranslate\">syncdb</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.signals.pre_syncdb</code> och <code class=\"docutils literal notranslate\">django.db.models.signals.post_syncdb</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">allow_syncdb</code> på databasroutrar kommer inte längre automatiskt att bli <code class=\"docutils literal notranslate\">allow_migrate</code>.</p></li>\n<li><p>Automatisk synkronisering av appar utan migreringar kommer att tas bort. Migreringar kommer att bli obligatoriska för alla appar om du inte anger alternativet <code class=\"docutils literal notranslate\">--run-syncdb</code> till <code class=\"docutils literal notranslate\">migrate</code>.</p></li>\n<li><p>SQL-hanteringskommandona för appar utan migreringar, <code class=\"docutils literal notranslate\">sql</code>, <code class=\"docutils literal notranslate\">sqlall</code>, <code class=\"docutils literal notranslate\">sqlclear</code>, <code class=\"docutils literal notranslate\">sqldropindexes</code> och <code class=\"docutils literal notranslate\">sqlindexes</code>, kommer att tas bort.</p></li>\n<li><p>Stöd för automatisk laddning av <code class=\"docutils literal notranslate\">initial_data</code> fixturer och initiala SQL-data kommer att tas bort.</p></li>\n<li><p>Alla modeller måste definieras i en installerad applikation eller deklarera en explicit <a class=\"reference internal\" href=\"/sv/6.1/ref/models/options/#django.db.models.Options.app_label\" title=\"django.db.models.Options.app_label\"><code class=\"xref py py-attr docutils literal notranslate\">app_label</code></a>. Dessutom kommer det inte att vara möjligt att importera dem innan deras applikation har laddats. I synnerhet kommer det inte att vara möjligt att importera modeller inuti rotpaketet för deras applikation.</p></li>\n<li><p>Modellen och formuläret <code class=\"docutils literal notranslate\">IPAddressField</code> kommer att tas bort. Ett stub-fält kommer att finnas kvar för kompatibilitet med historiska migreringar.</p></li>\n<li><p><code class=\"docutils literal notranslate\">AppCommand.handle_app()</code> kommer inte längre att stödjas.</p></li>\n<li><p><code class=\"docutils literal notranslate\">RequestSite</code> och <code class=\"docutils literal notranslate\">get_current_site()</code> kommer inte längre att vara importerbara från <code class=\"docutils literal notranslate\">django.contrib.sites.models</code>.</p></li>\n<li><p>FastCGI-stöd via hanteringskommandot <code class=\"docutils literal notranslate\">runfcgi</code> kommer att tas bort. Distribuera ditt projekt med hjälp av WSGI.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.datastructures.SortedDict</code> kommer att tas bort. Använd <a class=\"reference external\" href=\"https://docs.python.org/3/library/collections.html#collections.OrderedDict\" title=\"(in Python v3.14)\"><code class=\"xref py py-class docutils literal notranslate\">collections.OrderedDict</code></a> från Pythons standardbibliotek istället.</p></li>\n<li><p><code class=\"docutils literal notranslate\">ModelAdmin.declared_fieldsets</code> kommer att tas bort.</p></li>\n<li><p>Förekomster av <code class=\"docutils literal notranslate\">util.py</code> i Djangos kodbas har bytt namn till <code class=\"docutils literal notranslate\">utils.py</code> i ett försök att förena alla util- och utils-referenser. De moduler som gav bakåtkompatibilitet kommer att tas bort:</p>\n<ul>\n<li><p><code class=\"docutils literal notranslate\">django.contrib.admin.util</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.contrib.gis.db.backends.util</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.backends.util</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.forms.util</code></p></li>\n</ul>\n</li>\n<li><p><code class=\"docutils literal notranslate\">ModelAdmin.get_formsets</code> kommer att tas bort.</p></li>\n<li><p>Den shim för bakåtkompatibilitet som infördes för att byta namn på metoden <code class=\"docutils literal notranslate\">BaseMemcachedCache._get_memcache_timeout()</code> till <code class=\"docutils literal notranslate\">get_backend_timeout()</code> kommer att tas bort.</p></li>\n<li><p>Alternativen <code class=\"docutils literal notranslate\">--natural</code> och <code class=\"docutils literal notranslate\">-n</code> för <a class=\"reference internal\" href=\"/sv/6.1/ref/django-admin/#django-admin-dumpdata\"><code class=\"xref std std-djadmin docutils literal notranslate\">dumpdata</code></a> kommer att tas bort.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">use_natural_keys</code> för <code class=\"docutils literal notranslate\">serializers.serialize()</code> kommer att tas bort.</p></li>\n<li><p>Privata API <code class=\"docutils literal notranslate\">django.forms.forms.get_declared_fields()</code> kommer att tas bort.</p></li>\n<li><p>Möjligheten att använda en <code class=\"docutils literal notranslate\">SplitDateTimeWidget</code> med <code class=\"docutils literal notranslate\">DateTimeField</code> kommer att tas bort.</p></li>\n<li><p>Egenskapen <code class=\"docutils literal notranslate\">WSGIRequest.REQUEST</code> kommer att tas bort.</p></li>\n<li><p>Klassen <code class=\"docutils literal notranslate\">django.utils.datastructures.MergeDict</code> kommer att tas bort.</p></li>\n<li><p>Språkkoderna <code class=\"docutils literal notranslate\">zh-cn</code> och <code class=\"docutils literal notranslate\">zh-tw</code> kommer att tas bort och har ersatts av språkkoderna <code class=\"docutils literal notranslate\">zh-hans</code> respektive <code class=\"docutils literal notranslate\">zh-hant</code>.</p></li>\n<li><p>Den interna <code class=\"docutils literal notranslate\">django.utils.functional.memoize</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.core.cache.get_cache</code> kommer att tas bort. Lägg till lämpliga poster i <a class=\"reference internal\" href=\"/sv/6.1/ref/settings/#std-setting-CACHES\"><code class=\"xref std std-setting docutils literal notranslate\">CACHES</code></a> och använd <a class=\"reference internal\" href=\"/sv/6.1/topics/cache/#django.core.cache.caches\" title=\"django.core.cache.caches\"><code class=\"xref py py-data docutils literal notranslate\">django.core.cache.caches</code></a> istället.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.loading</code> kommer att tas bort.</p></li>\n<li><p>Det kommer inte längre att vara möjligt att skicka anropsbara argument till querysets.</p></li>\n<li><p><code class=\"docutils literal notranslate\">BaseCommand.requires_model_validation</code> kommer att tas bort till förmån för <code class=\"docutils literal notranslate\">requires_system_checks</code>. Admin-validatorer kommer att ersättas av admin-kontroller.</p></li>\n<li><p>Attributen <code class=\"docutils literal notranslate\">ModelAdmin.validator_class</code> och <code class=\"docutils literal notranslate\">default_validator_class</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">ModelAdmin.validate()</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.backends.DatabaseValidation.validate_field</code> kommer att tas bort till förmån för metoden <code class=\"docutils literal notranslate\">check_field</code>.</p></li>\n<li><p>Ledningskommandot <code class=\"docutils literal notranslate\">validate</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.module_loading.import_by_path</code> kommer att tas bort till förmån för <code class=\"docutils literal notranslate\">django.utils.module_loading.import_string</code>.</p></li>\n<li><p><code class=\"docutils literal notranslate\">ssi</code> och <code class=\"docutils literal notranslate\">url</code> malltaggar kommer att tas bort från <code class=\"docutils literal notranslate\">future</code> malltaggbiblioteket (används under 1.3/1.4 utfasningsperioden).</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.text.javascript_quote</code> kommer att tas bort.</p></li>\n<li><p>Databasens testinställningar som självständiga poster i databasinställningarna, med prefixet <code class=\"docutils literal notranslate\">TEST_</code>, kommer inte längre att stödjas.</p></li>\n<li><p>Alternativet <code class=\"docutils literal notranslate\">cache_choices</code> till <a class=\"reference internal\" href=\"/sv/6.1/ref/forms/fields/#django.forms.ModelChoiceField\" title=\"django.forms.ModelChoiceField\"><code class=\"xref py py-class docutils literal notranslate\">ModelChoiceField</code></a> och <a class=\"reference internal\" href=\"/sv/6.1/ref/forms/fields/#django.forms.ModelMultipleChoiceField\" title=\"django.forms.ModelMultipleChoiceField\"><code class=\"xref py py-class docutils literal notranslate\">ModelMultipleChoiceField</code></a> kommer att tas bort.</p></li>\n<li><p>Standardvärdet för attributet <a class=\"reference internal\" href=\"/sv/6.1/ref/class-based-views/base/#django.views.generic.base.RedirectView.permanent\" title=\"django.views.generic.base.RedirectView.permanent\"><code class=\"xref py py-attr docutils literal notranslate\">RedirectView.permanent</code></a> ändras från <code class=\"docutils literal notranslate\">True</code> till <code class=\"docutils literal notranslate\">False</code>.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.contrib.sitemaps.FlatPageSitemap</code> kommer att tas bort till förmån för <code class=\"docutils literal notranslate\">django.contrib.flatpages.sitemaps.FlatPageSitemap</code>.</p></li>\n<li><p>Privata API <code class=\"docutils literal notranslate\">django.test.utils.TestTemplateLoader</code> kommer att tas bort.</p></li>\n<li><p>Modulen <code class=\"docutils literal notranslate\">django.contrib.contenttypes.generic</code> kommer att tas bort.</p></li>\n<li><p>Privata API:er <code class=\"docutils literal notranslate\">django.db.models.sql.where.WhereNode.make_atom()</code> och <code class=\"docutils literal notranslate\">django.db.models.sql.where.Constraint</code> kommer att tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-1-8\">\n<span id=\"id14\"></span><h2>1.8<a class=\"heading-anchor\" href=\"#deprecation-removed-in-1-8\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/1.6/#deprecated-features-1-6\"><span class=\"std std-ref\">Django 1.6 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\">django.contrib.comments</code> kommer att tas bort.</p></li>\n<li><p>Följande API:er för transaktionshantering kommer att tas bort:</p>\n<ul>\n<li><p><code class=\"docutils literal notranslate\">TransactionMiddleware</code>,</p></li>\n<li><p>dekoratörerna och kontexthanterarna <code class=\"docutils literal notranslate\">autocommit</code>, <code class=\"docutils literal notranslate\">commit_on_success</code> och <code class=\"docutils literal notranslate\">commit_manually</code>, definierade i <code class=\"docutils literal notranslate\">django.db.transaction</code>,</p></li>\n<li><p>funktionerna <code class=\"docutils literal notranslate\">commit_unless_managed</code> och <code class=\"docutils literal notranslate\">rollback_unless_managed</code>, som också definieras i <code class=\"docutils literal notranslate\">django.db.transaction</code>,</p></li>\n<li><p>inställningen <code class=\"docutils literal notranslate\">TRANSACTIONS_MANAGED</code>.</p></li>\n</ul>\n</li>\n<li><p>Malltaggarna <a class=\"reference internal\" href=\"/sv/6.1/ref/templates/builtins/#std-templatetag-cycle\"><code class=\"xref std std-ttag docutils literal notranslate\">cycle</code></a> och <a class=\"reference internal\" href=\"/sv/6.1/ref/templates/builtins/#std-templatetag-firstof\"><code class=\"xref std std-ttag docutils literal notranslate\">firstof</code></a> kommer automatiskt att utläsa sina argument. I 1.6 och 1.7 tillhandahålls detta beteende av versionen av dessa taggar i malltaggbiblioteket <code class=\"docutils literal notranslate\">future</code>.</p></li>\n<li><p>Inställningen <code class=\"docutils literal notranslate\">SEND_BROKEN_LINK_EMAILS</code> kommer att tas bort. Lägg till <a class=\"reference internal\" href=\"/sv/6.1/ref/middleware/#django.middleware.common.BrokenLinkEmailsMiddleware\" title=\"django.middleware.common.BrokenLinkEmailsMiddleware\"><code class=\"xref py py-class docutils literal notranslate\">django.middleware.common.BrokenLinkEmailsMiddleware</code></a> middleware till din <code class=\"docutils literal notranslate\">MIDDLEWARE_CLASSES</code> inställning istället.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.middleware.doc.XViewMiddleware</code> kommer att tas bort. Använd <code class=\"docutils literal notranslate\">django.contrib.admindocs.middleware.XViewMiddleware</code> istället.</p></li>\n<li><p><code class=\"docutils literal notranslate\">Model._meta.module_name</code> döptes om till <code class=\"docutils literal notranslate\">model_name</code>.</p></li>\n<li><p>Ta bort de bakåtkompatibla shims som infördes för att byta namn på <code class=\"docutils literal notranslate\">get_query_set</code> och liknande queryset-metoder. Detta påverkar följande klasser: <code class=\"docutils literal notranslate\">BaseModelAdmin</code>, <code class=\"docutils literal notranslate\">ChangeList</code>, <code class=\"docutils literal notranslate\">BaseCommentNode</code>, <code class=\"docutils literal notranslate\">GenericForeignKey</code>, <code class=\"docutils literal notranslate\">Manager</code>, <code class=\"docutils literal notranslate\">SingleRelatedObjectDescriptor</code> och <code class=\"docutils literal notranslate\">ReverseSingleRelatedObjectDescriptor</code>.</p></li>\n<li><p>Ta bort de bakåtkompatibla shims som infördes för att byta namn på attributen <code class=\"docutils literal notranslate\">ChangeList.root_query_set</code> och <code class=\"docutils literal notranslate\">ChangeList.query_set</code>.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.views.defaults.shortcut</code> kommer att tas bort, som en del av målet att ta bort alla <code class=\"docutils literal notranslate\">django.contrib</code>-referenser från kärnan i Django-kodbasen. Använd istället <code class=\"docutils literal notranslate\">django.contrib.contenttypes.views.shortcut</code>. <code class=\"docutils literal notranslate\">django.conf.urls.shortcut</code> kommer också att tas bort.</p></li>\n<li><p>Stöd för modulen Python Imaging Library (PIL) kommer att tas bort, eftersom den inte längre verkar underhållas aktivt och inte fungerar på Python 3.</p></li>\n<li><p>Följande privata API:er kommer att tas bort:</p>\n<ul>\n<li><p><code class=\"docutils literal notranslate\">django.db.backend</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.close_connection()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.backends.creation.BaseDatabaseCreation.set_autocommit()</code></p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.transaction.is_managed()</code> ``</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.transaction.managed()</code></p></li>\n</ul>\n</li>\n<li><p><code class=\"docutils literal notranslate\">django.forms.widgets.RadioInput</code> kommer att tas bort till förmån för <code class=\"docutils literal notranslate\">django.forms.widgets.RadioChoiceInput</code>.</p></li>\n<li><p>Modulen <code class=\"docutils literal notranslate\">django.test.simple</code> och klassen <code class=\"docutils literal notranslate\">django.test.simple.DjangoTestSuiteRunner</code> kommer att tas bort. Använd istället <code class=\"docutils literal notranslate\">django.test.runner.DiscoverRunner</code>.</p></li>\n<li><p>Modulen <code class=\"docutils literal notranslate\">django.test._doctest</code> kommer att tas bort. Använd istället doctest-modulen från Pythons standardbibliotek.</p></li>\n<li><p>Inställningen <code class=\"docutils literal notranslate\">CACHE_MIDDLEWARE_ANONYMOUS_ONLY</code> kommer att tas bort.</p></li>\n<li><p>Django kommer inte längre att använda den hårdkodade strängen <em>Håll ned ”Control”, eller ”Command” på Mac, för att markera mer än ett.</em> för att åsidosätta eller lägga till användarangiven <code class=\"docutils literal notranslate\">help_text</code> i formulär för ManyToMany-modellfält, varken i modell- eller formulärlagret.</p></li>\n<li><p>Metoderna <code class=\"docutils literal notranslate\">Model._meta.get_(add|change|delete)_permission</code> kommer att tas bort.</p></li>\n<li><p>Sessionsnyckeln <code class=\"docutils literal notranslate\">django_language</code> kommer inte längre att läsas för bakåtkompatibilitet.</p></li>\n<li><p>Geografiska webbplatskartor kommer att tas bort (<code class=\"docutils literal notranslate\">django.contrib.gis.sitemaps.views.index</code> och <code class=\"docutils literal notranslate\">django.contrib.gis.sitemaps.views.sitemap</code>).</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.html.fix_ampersands</code>, mallfiltret <code class=\"docutils literal notranslate\">fix_ampersands</code> och <code class=\"docutils literal notranslate\">django.utils.html.clean_html</code> kommer att tas bort efter en påskyndad utfasning.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-1-7\">\n<span id=\"id15\"></span><h2>1.7<a class=\"heading-anchor\" href=\"#deprecation-removed-in-1-7\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/1.5/#deprecated-features-1-5\"><span class=\"std std-ref\">Django 1.5 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>Modulen <code class=\"docutils literal notranslate\">django.utils.simplejson</code> kommer att tas bort. Standardbiblioteket tillhandahåller <a class=\"reference external\" href=\"https://docs.python.org/3/library/json.html#module-json\" title=\"(in Python v3.14)\"><code class=\"xref py py-mod docutils literal notranslate\">json</code></a> som bör användas istället.</p></li>\n<li><p>Funktionen <code class=\"docutils literal notranslate\">django.utils.itercompat.product</code> kommer att tas bort. Den inbyggda Python-versionen bör användas istället.</p></li>\n<li><p>Automatisk korrigering av INSTALLED_APPS- och TEMPLATE_DIRS-inställningar när de anges som en vanlig sträng istället för en tupel kommer att tas bort och ge upphov till ett undantag.</p></li>\n<li><p>Argumentet <code class=\"docutils literal notranslate\">mimetype</code> till metoderna <code class=\"docutils literal notranslate\">__init__</code> i <a class=\"reference internal\" href=\"/sv/6.1/ref/request-response/#django.http.HttpResponse\" title=\"django.http.HttpResponse\"><code class=\"xref py py-class docutils literal notranslate\">HttpResponse</code></a>, <a class=\"reference internal\" href=\"/sv/6.1/ref/template-response/#django.template.response.SimpleTemplateResponse\" title=\"django.template.response.SimpleTemplateResponse\"><code class=\"xref py py-class docutils literal notranslate\">SimpleTemplateResponse</code></a>, och <a class=\"reference internal\" href=\"/sv/6.1/ref/template-response/#django.template.response.TemplateResponse\" title=\"django.template.response.TemplateResponse\"><code class=\"xref py py-class docutils literal notranslate\">TemplateResponse</code></a>, kommer att tas bort. <code class=\"docutils literal notranslate\">content_type</code> bör användas istället. Detta gäller även för genvägen <code class=\"docutils literal notranslate\">render_to_response()</code> och sitemap-vyerna, <a class=\"reference internal\" href=\"/sv/6.1/ref/contrib/sitemaps/#django.contrib.sitemaps.views.index\" title=\"django.contrib.sitemaps.views.index\"><code class=\"xref py py-func docutils literal notranslate\">index()</code></a> och <a class=\"reference internal\" href=\"/sv/6.1/ref/contrib/sitemaps/#django.contrib.sitemaps.views.sitemap\" title=\"django.contrib.sitemaps.views.sitemap\"><code class=\"xref py py-func docutils literal notranslate\">sitemap()</code></a>.</p></li>\n<li><p>När <a class=\"reference internal\" href=\"/sv/6.1/ref/request-response/#django.http.HttpResponse\" title=\"django.http.HttpResponse\"><code class=\"xref py py-class docutils literal notranslate\">HttpResponse</code></a> instansieras med en iterator, eller när <a class=\"reference internal\" href=\"/sv/6.1/ref/request-response/#django.http.HttpResponse.content\" title=\"django.http.HttpResponse.content\"><code class=\"xref py py-attr docutils literal notranslate\">content</code></a> sätts till en iterator, kommer den iteratorn att konsumeras omedelbart.</p></li>\n<li><p>Inställningen <code class=\"docutils literal notranslate\">AUTH_PROFILE_MODULE</code> och metoden <code class=\"docutils literal notranslate\">get_profile()</code> i User-modellen kommer att tas bort.</p></li>\n<li><p>Ledningskommandot <code class=\"docutils literal notranslate\">cleanup</code> kommer att tas bort. Det ersätts av <code class=\"docutils literal notranslate\">clearsessions</code>.</p></li>\n<li><p>Skriptet <code class=\"docutils literal notranslate\">daily_cleanup.py</code> kommer att tas bort.</p></li>\n<li><p>Nyckelordsargumentet <code class=\"docutils literal notranslate\">depth</code> kommer att tas bort från <a class=\"reference internal\" href=\"/sv/6.1/ref/models/querysets/#django.db.models.query.QuerySet.select_related\" title=\"django.db.models.query.QuerySet.select_related\"><code class=\"xref py py-meth docutils literal notranslate\">select_related()</code></a>.</p></li>\n<li><p>De odokumenterade funktionerna <code class=\"docutils literal notranslate\">get_warnings_state()</code>/<code class=\"docutils literal notranslate\">restore_warnings_state()</code> från <a class=\"reference internal\" href=\"/sv/6.1/topics/testing/advanced/#module-django.test.utils\" title=\"django.test.utils: Helpers to write custom test runners.\"><code class=\"xref py py-mod docutils literal notranslate\">django.test.utils</code></a> och metoderna <code class=\"docutils literal notranslate\">save_warnings_state()</code>/ <code class=\"docutils literal notranslate\">restore_warnings_state()</code> <a class=\"reference internal\" href=\"/sv/6.1/topics/testing/tools/#django-testcase-subclasses\"><span class=\"std std-ref\">django.test.*TestCase</span></a> är föråldrade. Använd istället <a class=\"reference external\" href=\"https://docs.python.org/3/library/warnings.html#warnings.catch_warnings\" title=\"(in Python v3.14)\"><code class=\"xref py py-class docutils literal notranslate\">warnings.catch_warnings</code></a> kontexthanterare som finns tillgänglig från och med Python 2.6.</p></li>\n<li><p>Den odokumenterade metoden <code class=\"docutils literal notranslate\">check_for_test_cookie</code> i <a class=\"reference internal\" href=\"/sv/6.1/topics/auth/default/#django.contrib.auth.forms.AuthenticationForm\" title=\"django.contrib.auth.forms.AuthenticationForm\"><code class=\"xref py py-class docutils literal notranslate\">AuthenticationForm</code></a> kommer att tas bort efter en accelererad depreciering. Användare som underklassar detta formulär bör ta bort anrop till denna metod och istället se till att deras auth-relaterade vyer är CSRF-skyddade, vilket säkerställer att cookies är aktiverade.</p></li>\n<li><p>Den version av <code class=\"docutils literal notranslate\">django.contrib.auth.views.password_reset_confirm()</code> som stöder base36-kodade användar-ID (<code class=\"docutils literal notranslate\">django.contrib.auth.views.password_reset_confirm_uidb36</code>) kommer att tas bort. Om din webbplats har kört Django 1.6 i mer än <code class=\"docutils literal notranslate\">PASSWORD_RESET_TIMEOUT_DAYS</code>, kommer denna ändring inte att ha någon effekt. Om inte, kommer alla länkar för återställning av lösenord som genereras innan du uppgraderar till Django 1.7 inte att fungera efter uppgraderingen.</p></li>\n<li><p>Mix-in <code class=\"docutils literal notranslate\">django.utils.encoding.StrAndUnicode</code> kommer att tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-1-6\">\n<span id=\"id16\"></span><h2>1.6<a class=\"heading-anchor\" href=\"#deprecation-removed-in-1-6\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/1.4/#deprecated-features-1-4\"><span class=\"std std-ref\">Django 1.4 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\">django.contrib.databrowse</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.contrib.localflavor</code> kommer att tas bort efter en snabbare utfasning.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.contrib.markup</code> kommer att tas bort efter en påskyndad avskrivning.</p></li>\n<li><p>Kompatibilitetsmodulerna <code class=\"docutils literal notranslate\">django.utils.copycompat</code> och <code class=\"docutils literal notranslate\">django.utils.hashcompat</code> samt funktionerna <code class=\"docutils literal notranslate\">django.utils.itercompat.all</code> och <code class=\"docutils literal notranslate\">django.utils.itercompat.any</code> kommer att tas bort. De inbyggda Python-versionerna bör användas istället.</p></li>\n<li><p>Dekoratorerna <code class=\"docutils literal notranslate\">csrf_response_exempt</code> och <code class=\"docutils literal notranslate\">csrf_view_exempt</code> kommer att tas bort. Sedan 1.4 har <code class=\"docutils literal notranslate\">csrf_response_exempt</code> varit en no-op (den returnerar samma funktion), och <code class=\"docutils literal notranslate\">csrf_view_exempt</code> har varit en synonym för <code class=\"docutils literal notranslate\">django.views.decorators.csrf.csrf_exempt</code>, som bör användas för att ersätta den.</p></li>\n<li><p>Backend <code class=\"docutils literal notranslate\">django.core.cache.backends.memcached.CacheClass</code> delades upp i två i Django 1.3 för att införa stöd för PyLibMC. Den historiska <code class=\"docutils literal notranslate\">CacheClass</code> kommer att tas bort till förmån för <code class=\"docutils literal notranslate\">django.core.cache.backends.memcached.MemcachedCache</code>.</p></li>\n<li><p>De UK-prefixerade objekten i <code class=\"docutils literal notranslate\">django.contrib.localflavor.uk</code> kommer endast att vara tillgängliga genom sina GB-prefixerade namn (GB är den korrekta ISO 3166-koden för Storbritannien).</p></li>\n<li><p>Inställningarna <code class=\"docutils literal notranslate\">IGNORABLE_404_STARTS</code> och <code class=\"docutils literal notranslate\">IGNORABLE_404_ENDS</code> har ersatts av <a class=\"reference internal\" href=\"/sv/6.1/ref/settings/#std-setting-IGNORABLE_404_URLS\"><code class=\"xref std std-setting docutils literal notranslate\">IGNORABLE_404_URLS</code></a> i utgåvan 1.4. De kommer att tas bort.</p></li>\n<li><p>Formulärguiden har omarbetats för att använda klassbaserade vyer med pluggbara backends i 1.4. Den tidigare implementationen kommer att tas bort.</p></li>\n<li><p>Äldre sätt att anropa <a class=\"reference internal\" href=\"/sv/6.1/topics/cache/#django.views.decorators.cache.cache_page\" title=\"django.views.decorators.cache.cache_page\"><code class=\"xref py py-func docutils literal notranslate\">cache_page()</code></a> kommer att tas bort.</p></li>\n<li><p>Den bakåtkompatibla shim som automatiskt lägger till ett debug-false-filter i logghanteraren <code class=\"docutils literal notranslate\">'mail_admins</code> kommer att tas bort. Inställningen <a class=\"reference internal\" href=\"/sv/6.1/ref/settings/#std-setting-LOGGING\"><code class=\"xref std std-setting docutils literal notranslate\">LOGGING</code></a> bör inkludera detta filter explicit om det önskas.</p></li>\n<li><p>De inbyggda trunkeringsfunktionerna <code class=\"docutils literal notranslate\">django.utils.text.truncate_words()</code> och <code class=\"docutils literal notranslate\">django.utils.text.truncate_html_words()</code> kommer att tas bort till förmån för klassen <code class=\"docutils literal notranslate\">django.utils.text.Truncator</code>.</p></li>\n<li><p>Klassen <code class=\"docutils literal notranslate\">django.contrib.gis.geoip.GeoIP</code> flyttades till <code class=\"docutils literal notranslate\">django.contrib.gis.geoip</code> i 1.4 – genvägen i <code class=\"docutils literal notranslate\">django.contrib.gis.utils</code> kommer att tas bort.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.conf.urls.defaults</code> kommer att tas bort. Funktionerna <code class=\"docutils literal notranslate\">include()</code>, <code class=\"docutils literal notranslate\">patterns()</code>, och <code class=\"docutils literal notranslate\">url()</code>, plus <a class=\"reference internal\" href=\"/sv/6.1/ref/urls/#django.conf.urls.handler404\" title=\"django.conf.urls.handler404\"><code class=\"xref py py-data docutils literal notranslate\">handler404</code></a> och <a class=\"reference internal\" href=\"/sv/6.1/ref/urls/#django.conf.urls.handler500\" title=\"django.conf.urls.handler500\"><code class=\"xref py py-data docutils literal notranslate\">handler500</code></a> är nu tillgängliga via <code class=\"docutils literal notranslate\">django.conf.urls</code>.</p></li>\n<li><p>Funktionerna <code class=\"docutils literal notranslate\">setup_environ()</code> och <code class=\"docutils literal notranslate\">execute_manager()</code> kommer att tas bort från <a class=\"reference internal\" href=\"/sv/6.1/howto/custom-management-commands/#module-django.core.management\" title=\"django.core.management\"><code class=\"xref py py-mod docutils literal notranslate\">django.core.management</code></a>. Detta innebär också att den gamla (pre-1.4) stilen för <code class=\"file docutils literal notranslate\">manage.py</code>-filen inte längre kommer att fungera.</p></li>\n<li><p>Att ställa in flaggorna <code class=\"docutils literal notranslate\">is_safe</code> och <code class=\"docutils literal notranslate\">needs_autoescape</code> som attribut för mallfilterfunktioner kommer inte längre att stödjas.</p></li>\n<li><p>Attributet <code class=\"docutils literal notranslate\">HttpRequest.raw_post_data</code> döptes om till <code class=\"docutils literal notranslate\">HttpRequest.body</code> i 1.4. Bakåtkompatibiliteten kommer att tas bort – <code class=\"docutils literal notranslate\">HttpRequest.raw_post_data</code> kommer inte längre att fungera.</p></li>\n<li><p>Värdet för parametern <code class=\"docutils literal notranslate\">post_url_continue</code> i <code class=\"docutils literal notranslate\">ModelAdmin.response_add()</code> måste vara antingen <code class=\"docutils literal notranslate\">None</code> (för att omdirigera till det nyskapade objektets redigeringssida) eller en förformaterad webbadress. Strängformat, som det tidigare standardvärdet <code class=\"docutils literal notranslate\">'../%s/'</code>, kommer inte att accepteras längre.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-1-5\">\n<span id=\"id17\"></span><h2>1.5<a class=\"heading-anchor\" href=\"#deprecation-removed-in-1-5\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/1.3/#deprecated-features-1-3\"><span class=\"std std-ref\">Django 1.3 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p>Att starta Django utan en <a class=\"reference internal\" href=\"/sv/6.1/ref/settings/#std-setting-SECRET_KEY\"><code class=\"xref std std-setting docutils literal notranslate\">SECRET_KEY</code></a> kommer att resultera i ett undantag snarare än en <code class=\"docutils literal notranslate\">DeprecationWarning</code>. (Detta är accelererat från den vanliga föråldringsvägen; se <a class=\"reference internal\" href=\"/sv/6.1/releases/1.4/\"><span class=\"doc\">Django 1.4 versionsinformation</span></a>.)</p></li>\n<li><p>Förfrågningshanteraren <code class=\"docutils literal notranslate\">mod_python</code> kommer att tas bort. Hanteringen <code class=\"docutils literal notranslate\">mod_wsgi</code> bör användas istället.</p></li>\n<li><p>Attributet <code class=\"docutils literal notranslate\">template</code> på <code class=\"docutils literal notranslate\">django.test.client.Response</code>-objekt som returneras av <a class=\"reference internal\" href=\"/sv/6.1/topics/testing/tools/#test-client\"><span class=\"std std-ref\">test client</span></a> kommer att tas bort. Attributet <a class=\"reference internal\" href=\"/sv/6.1/topics/testing/tools/#django.test.Response.templates\" title=\"django.test.Response.templates\"><code class=\"xref py py-attr docutils literal notranslate\">templates</code></a> bör användas istället.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.test.simple.DjangoTestRunner</code> kommer att tas bort. Använd istället en <code class=\"docutils literal notranslate\">unittest</code>-nativ klass. Funktionerna i <code class=\"docutils literal notranslate\">django.test.simple.DjangoTestRunner</code> (inklusive fail-fast och Ctrl-C testavslut) kan tillhandahållas av <a class=\"reference external\" href=\"https://docs.python.org/3/library/unittest.html#unittest.TextTestRunner\" title=\"(in Python v3.14)\"><code class=\"xref py py-class docutils literal notranslate\">unittest.TextTestRunner</code></a>.</p></li>\n<li><p>Den odokumenterade funktionen <code class=\"docutils literal notranslate\">django.contrib.formtools.utils.security_hash</code> kommer att tas bort, använd istället <code class=\"docutils literal notranslate\">django.contrib.formtools.utils.form_hmac</code></p></li>\n<li><p>De funktionsbaserade generiska vymodulerna kommer att tas bort till förmån för deras klassbaserade motsvarigheter, som beskrivs <a class=\"reference internal\" href=\"/sv/6.1/topics/class-based-views/\"><span class=\"doc\">här</span></a>.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.core.servers.basehttp.AdminMediaHandler</code> kommer att tas bort. Använd i stället <code class=\"docutils literal notranslate\">django.contrib.staticfiles.handlers.StaticFilesHandler</code>.</p></li>\n<li><p>Malltaggbiblioteket <code class=\"docutils literal notranslate\">adminmedia</code> och malltaggen <code class=\"docutils literal notranslate\">{% admin_media_prefix %}</code> kommer att tas bort till förmån för den generiska hanteringen av statiska filer. (Detta är snabbare än den vanliga utfasningsvägen; se <a class=\"reference internal\" href=\"/sv/6.1/releases/1.4/\"><span class=\"doc\">Django 1.4 versionsinformation</span></a>.)</p></li>\n<li><p>Malltaggarna <code class=\"docutils literal notranslate\">url</code> och <code class=\"docutils literal notranslate\">ssi</code> kommer att ändras så att det första argumentet i varje tagg är en mallvariabel, inte en implicit sträng. I 1.4 tillhandahålls detta beteende av en version av taggen i malltaggsbiblioteket <code class=\"docutils literal notranslate\">future</code>.</p></li>\n<li><p>Hanteringskommandona <code class=\"docutils literal notranslate\">reset</code> och <code class=\"docutils literal notranslate\">sqlreset</code> kommer att tas bort.</p></li>\n<li><p>Autentiseringsbackends måste ha stöd för att en inaktiv användare skickas till alla metoder som hanterar behörigheter. Attributet <code class=\"docutils literal notranslate\">supports_inactive_user</code> kommer inte längre att kontrolleras och kan tas bort från anpassade backends.</p></li>\n<li><p><a class=\"reference internal\" href=\"/sv/6.1/ref/contrib/gis/geos/#django.contrib.gis.geos.GEOSGeometry.transform\" title=\"django.contrib.gis.geos.GEOSGeometry.transform\"><code class=\"xref py py-meth docutils literal notranslate\">transform()</code></a> kommer att ge upphov till en <a class=\"reference internal\" href=\"/sv/6.1/ref/contrib/gis/geos/#django.contrib.gis.geos.GEOSException\" title=\"django.contrib.gis.geos.GEOSException\"><code class=\"xref py py-class docutils literal notranslate\">GEOSException</code></a> när den anropas på en geometri utan SRID-värde.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.http.CompatCookie</code> kommer att tas bort till förmån för <code class=\"docutils literal notranslate\">django.http.SimpleCookie</code>.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.core.context_processors.PermWrapper</code> och <code class=\"docutils literal notranslate\">django.core.context_processors.PermLookupDict</code> kommer att tas bort till förmån för motsvarande <code class=\"docutils literal notranslate\">django.contrib.auth.context_processors.PermWrapper</code> respektive <code class=\"docutils literal notranslate\">django.contrib.auth.context_processors.PermLookupDict</code>.</p></li>\n<li><p>Inställningarna <a class=\"reference internal\" href=\"/sv/6.1/ref/settings/#std-setting-MEDIA_URL\"><code class=\"xref std std-setting docutils literal notranslate\">MEDIA_URL</code></a> eller <a class=\"reference internal\" href=\"/sv/6.1/ref/settings/#std-setting-STATIC_URL\"><code class=\"xref std std-setting docutils literal notranslate\">STATIC_URL</code></a> måste sluta med ett efterföljande snedstreck för att säkerställa att det finns ett konsekvent sätt att kombinera sökvägar i mallar.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.fields.URLField.verify_exists</code> kommer att tas bort. Funktionen utrangerades i 1.3.1 på grund av svårlösta säkerhets- och prestandaproblem och kommer att följa en något snabbare tidsram för utrangeringen.</p></li>\n<li><p>Översättningar som ligger under den så kallade <em>projektsökvägen</em> kommer att ignoreras under översättningsbyggnadsprocessen som utförs vid körning. Inställningen <a class=\"reference internal\" href=\"/sv/6.1/ref/settings/#std-setting-LOCALE_PATHS\"><code class=\"xref std std-setting docutils literal notranslate\">LOCALE_PATHS</code></a> kan användas för samma uppgift genom att inkludera filsystemets sökväg till en <code class=\"docutils literal notranslate\">locale</code>-katalog som innehåller icke-appspecifika översättningar i dess värde.</p></li>\n<li><p>Appen Markup contrib kommer inte längre att stödja versioner av Python-Markdown-biblioteket som är äldre än 2.1. En påskyndad tidslinje användes eftersom detta var en säkerhetsrelaterad utfasning.</p></li>\n<li><p>Inställningen <code class=\"docutils literal notranslate\">CACHE_BACKEND</code> kommer att tas bort. Cache-backend(s) bör anges i inställningen <a class=\"reference internal\" href=\"/sv/6.1/ref/settings/#std-setting-CACHES\"><code class=\"xref std std-setting docutils literal notranslate\">CACHES</code></a>.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-1-4\">\n<span id=\"id18\"></span><h2>1.4<a class=\"heading-anchor\" href=\"#deprecation-removed-in-1-4\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/1.2/#deprecated-features-1-2\"><span class=\"std std-ref\">Django 1.2 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\">CsrfResponseMiddleware</code> och <code class=\"docutils literal notranslate\">CsrfMiddleware</code> kommer att tas bort. Använd malltaggen <code class=\"docutils literal notranslate\">{% csrf_token %}</code> inuti formulär för att aktivera CSRF-skydd. <code class=\"docutils literal notranslate\">CsrfViewMiddleware</code> finns kvar och är aktiverad som standard.</p></li>\n<li><p>Den gamla importen för CSRF-funktionalitet (<code class=\"docutils literal notranslate\">django.contrib.csrf.*</code>), som flyttades till kärnan i 1.2, kommer att tas bort.</p></li>\n<li><p>Modulen <code class=\"docutils literal notranslate\">django.contrib.gis.db.backend</code> kommer att tas bort till förmån för de specifika backends.</p></li>\n<li><p><code class=\"docutils literal notranslate\">SMTPConnection</code> kommer att tas bort till förmån för ett generiskt API för e-postbackend.</p></li>\n<li><p>De många SQL-genereringsfunktionerna på databasens backend kommer att tas bort.</p></li>\n<li><p>Möjligheten att använda <code class=\"docutils literal notranslate\">DATABASE_*</code>-familjen av toppnivåinställningar för att definiera databasanslutningar kommer att tas bort.</p></li>\n<li><p>Möjligheten att använda kortfattad notation för att ange en databasbackend (t.ex. <code class=\"docutils literal notranslate\">sqlite3</code> istället för <code class=\"docutils literal notranslate\">django.db.backends.sqlite3</code>) kommer att tas bort.</p></li>\n<li><p>Metoderna <code class=\"docutils literal notranslate\">get_db_prep_save</code>, <code class=\"docutils literal notranslate\">get_db_prep_value</code> och <code class=\"docutils literal notranslate\">get_db_prep_lookup</code> måste ha stöd för flera databaser.</p></li>\n<li><p>Modellen <code class=\"docutils literal notranslate\">Message</code> (i <code class=\"docutils literal notranslate\">django.contrib.auth</code>), dess relaterade hanterare i modellen <code class=\"docutils literal notranslate\">User</code> (<code class=\"docutils literal notranslate\">user.message_set</code>) och de associerade metoderna (<code class=\"docutils literal notranslate\">user.message_set.create()</code> och <code class=\"docutils literal notranslate\">user.get_and_delete_messages()</code>) kommer att tas bort. Använd i stället <a class=\"reference internal\" href=\"/sv/6.1/ref/contrib/messages/\"><span class=\"doc\">meddelanderamverket</span></a>. Den relaterade variabeln <code class=\"docutils literal notranslate\">messages</code> som returneras av autentiseringens kontextprocessor kommer också att tas bort. Observera att detta innebär att administrationsapplikationen kommer att bero på meddelandenas kontextprocessor.</p></li>\n<li><p>Autentiseringsbackends måste ha stöd för parametern <code class=\"docutils literal notranslate\">obj</code> för behörighetskontroll. Attributet <code class=\"docutils literal notranslate\">upports_object_permissions</code> kommer inte längre att kontrolleras och kan tas bort från anpassade backends.</p></li>\n<li><p>Autentiseringsbackendar måste stödja att klassen <code class=\"docutils literal notranslate\">AnonymousUser</code> skickas till alla metoder som hanterar behörigheter. Variabeln <code class=\"docutils literal notranslate\">supports_anonymous_user</code> kommer inte längre att kontrolleras och kan tas bort från anpassade backendar.</p></li>\n<li><p>Möjligheten att ange en anropsbar malladdare i stället för en <code class=\"docutils literal notranslate\">Loader</code>-klass kommer att tas bort, liksom <code class=\"docutils literal notranslate\">load_template_source</code>-funktionerna som ingår i de inbyggda malladdarna för bakåtkompatibilitet.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.utils.translation.get_date_formats()</code> och <code class=\"docutils literal notranslate\">django.utils.translation.get_partial_date_formats()</code>. Dessa funktioner kommer att tas bort; använd den lokalmedvetna <code class=\"docutils literal notranslate\">django.utils.formats.get_format()</code> för att få lämpliga format.</p></li>\n<li><p>I <code class=\"docutils literal notranslate\">django.forms.fields</code> kommer konstanterna: <code class=\"docutils literal notranslate\">DEFAULT_DATE_INPUT_FORMATS</code>, <code class=\"docutils literal notranslate\">DEFAULT_TIME_INPUT_FORMATS</code> och <code class=\"docutils literal notranslate\">DEFAULT_DATETIME_INPUT_FORMATS</code> att tas bort. Använd <code class=\"docutils literal notranslate\">django.utils.formats.get_format()</code> för att få lämpliga format.</p></li>\n<li><p>Möjligheten att använda en funktionsbaserad testlöpare kommer att tas bort, tillsammans med testlöparen <code class=\"docutils literal notranslate\">django.test.simple.run_tests()</code>.</p></li>\n<li><p>Vyn <code class=\"docutils literal notranslate\">views.feed()</code> och klassen <code class=\"docutils literal notranslate\">feeds.Feed</code> i <code class=\"docutils literal notranslate\">django.contrib.syndication</code> kommer att tas bort. Den klassbaserade vyn <code class=\"docutils literal notranslate\">views.Feed</code> bör användas istället.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.core.context_processors.auth</code>. Den här utgåvan tar bort den gamla metoden till förmån för den nya metoden i <code class=\"docutils literal notranslate\">django.contrib.auth.context_processors.auth</code>.</p></li>\n<li><p>Databasbackend <code class=\"docutils literal notranslate\">postgresql</code> kommer att tas bort, använd istället backend <code class=\"docutils literal notranslate\">postgresql_psycopg2</code>.</p></li>\n<li><p>Språkkoden <code class=\"docutils literal notranslate\">no</code> kommer att tas bort och har ersatts av språkkoden <code class=\"docutils literal notranslate\">nb</code>.</p></li>\n<li><p>Autentiseringsbackends måste definiera det booleska attributet <code class=\"docutils literal notranslate\">supports_inactive_user</code> fram till version 1.5 då det kommer att antas att alla backends hanterar inaktiva användare.</p></li>\n<li><p><code class=\"docutils literal notranslate\">django.db.models.fields.XMLField</code> kommer att tas bort. Detta avförklarades som en del av 1.3-versionen. Ett accelererat avvecklingsschema har använts eftersom fältet inte har utfört någon roll utöver den som en enkel <code class=\"docutils literal notranslate\">TextField</code> sedan borttagandet av <code class=\"docutils literal notranslate\">oldforms</code>. Alla användningar av <code class=\"docutils literal notranslate\">XMLField</code> kan ersättas med <code class=\"docutils literal notranslate\">TextField</code>.</p></li>\n<li><p>Den odokumenterade parametern <code class=\"docutils literal notranslate\">mixin</code> till metoden <code class=\"docutils literal notranslate\">open()</code> i <code class=\"docutils literal notranslate\">django.core.files.storage.Storage</code> (och underklasser) kommer att tas bort.</p></li>\n</ul>\n</section>\n<section id=\"deprecation-removed-in-1-3\">\n<span id=\"id19\"></span><h2>1.3<a class=\"heading-anchor\" href=\"#deprecation-removed-in-1-3\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Se <a class=\"reference internal\" href=\"/sv/6.1/releases/1.1/#deprecated-features-1-1\"><span class=\"std std-ref\">Django 1.1 versionsinformation</span></a> för mer information om dessa ändringar.</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\">AdminSite.root()</code>. Den här metoden för att koppla administratörs-URL:erna tas bort till förmån för att inkludera <code class=\"docutils literal notranslate\">admin.site.urls</code>.</p></li>\n<li><p>Autentiseringsbackends måste definiera de booleska attributen <code class=\"docutils literal notranslate\">supports_object_permissions</code> och <code class=\"docutils literal notranslate\">upports_anonymous_user</code> fram till version 1.4, då det kommer att antas att alla backends stöder dessa alternativ.</p></li>\n</ul>\n</section>","rootId":"django-deprecation-timeline","toc":[{"title":"2028","anchor":"deprecation-removed-in-2028","children":[]},{"title":"6.1","anchor":"deprecation-removed-in-6-1","children":[]},{"title":"6.0","anchor":"deprecation-removed-in-6-0","children":[]},{"title":"5.1","anchor":"deprecation-removed-in-5-1","children":[]},{"title":"5.0","anchor":"deprecation-removed-in-5-0","children":[]},{"title":"4.1","anchor":"deprecation-removed-in-4-1","children":[]},{"title":"4.0","anchor":"deprecation-removed-in-4-0","children":[]},{"title":"3.1","anchor":"deprecation-removed-in-3-1","children":[]},{"title":"3.0","anchor":"deprecation-removed-in-3-0","children":[]},{"title":"2.1","anchor":"deprecation-removed-in-2-1","children":[]},{"title":"2.0","anchor":"deprecation-removed-in-2-0","children":[]},{"title":"1.10","anchor":"deprecation-removed-in-1-10","children":[]},{"title":"1.9","anchor":"deprecation-removed-in-1-9","children":[]},{"title":"1.8","anchor":"deprecation-removed-in-1-8","children":[]},{"title":"1.7","anchor":"deprecation-removed-in-1-7","children":[]},{"title":"1.6","anchor":"deprecation-removed-in-1-6","children":[]},{"title":"1.5","anchor":"deprecation-removed-in-1-5","children":[]},{"title":"1.4","anchor":"deprecation-removed-in-1-4","children":[]},{"title":"1.3","anchor":"deprecation-removed-in-1-3","children":[]}],"breadcrumbs":[{"docname":"internals/index","title":"Djangos interna funktioner","url":"/sv/6.1/internals/"}],"prev":{"docname":"internals/release-process","title":"Djangos lanseringsprocess","url":"/sv/6.1/internals/release-process/"},"next":{"docname":"internals/git","title":"Djangos källkodsarkiv","url":"/sv/6.1/internals/git/"},"formats":{"html":"/sv/6.1/internals/deprecation/","markdown":"/sv/6.1/internals/deprecation.md","json":"/sv/6.1/internals/deprecation.json"},"source":"https://github.com/django/django/blob/stable/6.1.x/docs/internals/deprecation.txt","official":"https://docs.djangoproject.com/sv/6.1/internals/deprecation/","inVersions":["6.1","6.0","5.2"],"inLocales":["en","sv","zh-hans","ga","fr","ja","id","it","pt-br","ko","es","el","pl"]}