Leaklens

SWE-bench Verified: every task, with its verdict

Download CSV
TaskVerdictIssue title
django__django-10914Tier A: the fix is stated in the issueSet default FILE_UPLOAD_PERMISSION to 0o644.
django__django-11066Tier A: the fix is stated in the issueRenameContentType._rename() doesn't save the content type on the correct database
django__django-11099Tier A: the fix is stated in the issueUsernameValidator allows trailing newline in usernames
django__django-11133Tier A: the fix is stated in the issueHttpResponse doesn't handle memoryview objects
django__django-11141Tier A: the fix is stated in the issueAllow migrations directories without __init__.py files
django__django-11163Tier A: the fix is stated in the issuemodel_to_dict() should return an empty dict for an empty list of fields.
django__django-11276Tier A: the fix is stated in the issueUse Python stdlib html.escape() to in django.utils.html.escape()
django__django-11451Tier A: the fix is stated in the issueModelBackend.authenticate() shouldn't make a database query when username is None
django__django-11532Tier A: the fix is stated in the issueEmail messages crash on non-ASCII domain when email encoding is non-unicode.
django__django-11551Tier A: the fix is stated in the issueadmin.E108 is raised on fields accessible only via instance.
django__django-11603Tier A: the fix is stated in the issueAdd DISTINCT support for Avg and Sum aggregates.
django__django-11728Tier A: the fix is stated in the issuesimplify_regexp() doesn't replace trailing groups.
django__django-11815Tier A: the fix is stated in the issueMigrations uses value of enum object instead of its name.
django__django-11848Tier A: the fix is stated in the issuedjango.utils.http.parse_http_date two digit year check is incorrect
django__django-11951Tier A: the fix is stated in the issuebulk_create batch_size param overrides the compatible batch size calculation
django__django-11999Tier A: the fix is stated in the issueCannot override get_FOO_display() in Django 2.2+.
django__django-12143Tier A: the fix is stated in the issuePossible data loss in admin changeform view when using regex special characters in formset prefix
django__django-12209Tier A: the fix is stated in the issueChange in behaviour when saving a model instance with an explcit pk value if the pk field has a default
django__django-12276Tier A: the fix is stated in the issueFileInput shouldn't display required attribute when initial data exists.
django__django-12304Tier A: the fix is stated in the issueEnumeration Types are not usable in templates.
django__django-12419Tier A: the fix is stated in the issueAdd secure default SECURE_REFERRER_POLICY / Referrer-policy header
django__django-12663Tier A: the fix is stated in the issueUsing SimpleLazyObject with a nested subquery annotation fails.
django__django-12741Tier A: the fix is stated in the issueSimplify signature of `DatabaseOperations.execute_sql_flush()`
django__django-13033Tier A: the fix is stated in the issueSelf referencing foreign key doesn't correctly order by a relation "_id" field.
django__django-13109Tier A: the fix is stated in the issueForeignKey.validate() should validate using the base manager.
django__django-13279Tier A: the fix is stated in the issueSession data cannot be decoded during the transition to Django 3.1.
django__django-13449Tier A: the fix is stated in the issueLag() with DecimalField crashes on SQLite.
django__django-13513Tier A: the fix is stated in the issuedebug error view doesn't respect exc.__suppress_context__ (PEP 415)
django__django-13551Tier A: the fix is stated in the issueChanging user's email could invalidate password reset tokens
django__django-13569Tier A: the fix is stated in the issueorder_by('?') unexpectedly breaking queryset aggregation
django__django-13590Tier A: the fix is stated in the issueUpgrading 2.2>3.0 causes named tuples used as arguments to __range to error.
django__django-13658Tier A: the fix is stated in the issueManagementUtility instantiates CommandParser without passing already-computed prog argument
django__django-13741Tier A: the fix is stated in the issueSet disabled prop on ReadOnlyPasswordHashField
django__django-13807Tier A: the fix is stated in the issueloaddata crashes on SQLite when table names are SQL keywords.
django__django-13820Tier A: the fix is stated in the issuePermit migrations in non-namespace packages that don't have __file__
django__django-13837Tier A: the fix is stated in the issueAllow autoreloading of `python -m pkg_other_than_django runserver`
django__django-13933Tier A: the fix is stated in the issueModelChoiceField does not provide value of invalid choice when raising ValidationError
django__django-14011Tier A: the fix is stated in the issueLiveServerTestCase's ThreadedWSGIServer doesn't close database connections after each thread
django__django-14140Tier A: the fix is stated in the issueCombining Q() objects with boolean expressions crashes.
django__django-14311Tier A: the fix is stated in the issueAllow autoreloading of `python -m custom_module runserver`
django__django-14376Tier A: the fix is stated in the issueMySQL backend uses deprecated "db" and "passwd" kwargs.
django__django-14404Tier A: the fix is stated in the issuecatch_all_view() does not support FORCE_SCRIPT_NAME.
django__django-14534Tier A: the fix is stated in the issueBoundWidget.id_for_label ignores id set by ChoiceWidget.options
django__django-14559Tier A: the fix is stated in the issueInclude number of rows matched in bulk_update() return value
django__django-14580Tier A: the fix is stated in the issueMissing import statement in generated migration (NameError: name 'models' is not defined)
django__django-14672Tier A: the fix is stated in the issueMissing call `make_hashable` on `through_fields` in `ManyToManyRel`
django__django-14752Tier A: the fix is stated in the issueRefactor AutocompleteJsonView to support extra fields in autocomplete response
django__django-14765Tier A: the fix is stated in the issueProjectState.__init__() can assume its real_apps argument is a set
django__django-14855Tier A: the fix is stated in the issueWrong URL generated by get_admin_url for readonly field in custom Admin Site
django__django-14915Tier A: the fix is stated in the issueModelChoiceIteratorValue is not hashable.
django__django-15104Tier A: the fix is stated in the issueKeyError with migration autodetector and FK field with hardcoded reference
django__django-15277Tier A: the fix is stated in the issueMicro-optimisation for Value._resolve_output_field (by modifying CharField.__init__)
django__django-15368Tier A: the fix is stated in the issuebulk_update() does not work with plain F('...') expressions.
django__django-15569Tier A: the fix is stated in the issueRegisterLookupMixin._unregister_lookup() should clear the lookup cache.
django__django-15731Tier A: the fix is stated in the issueinspect.signature() returns incorrect signature on manager methods.
django__django-15814Tier A: the fix is stated in the issueQuerySet.only() after select_related() crash on proxy models.
django__django-15851Tier A: the fix is stated in the issuedbshell additional parameters should be passed before dbname on PostgreSQL.
django__django-16032Tier A: the fix is stated in the issue__in doesn't clear selected fields on the RHS when QuerySet.alias() is used after annotate().
django__django-16139Tier A: the fix is stated in the issueAccessing UserAdmin via to_field leads to link to PasswordResetForm being broken (404)
django__django-16315Tier A: the fix is stated in the issueQuerySet.bulk_create() crashes on mixed case columns in unique_fields/update_fields.
django__django-16333Tier A: the fix is stated in the issueUserCreationForm should save data from ManyToMany form fields
django__django-16429Tier A: the fix is stated in the issuetimesince() raises TypeError with USE_TZ=True and >1 month interval.
django__django-16493Tier A: the fix is stated in the issueCallable storage on FileField fails to deconstruct when it returns default_storage
django__django-16527Tier A: the fix is stated in the issue"show_save_as_new" in admin can add without this permission
django__django-16569Tier A: the fix is stated in the issueFormsets' add_fields() method fails in some circumstances if the argument index is None.
django__django-16595Tier A: the fix is stated in the issueMigration optimizer does not reduce multiple AlterField
django__django-16938Tier A: the fix is stated in the issueSerialization of m2m relation fails with custom manager using select_related
django__django-17029Tier A: the fix is stated in the issueApps.clear_cache() does not clear get_swappable_settings_name cache.
django__django-9296Tier A: the fix is stated in the issuePaginator just implement the __iter__ function
django__django-12273Tier C: the issue text repeats lines of the gold patchResetting primary key for a child model doesn't work.
django__django-13012Tier C: the issue text repeats lines of the gold patchConstant expressions of an ExpressionWrapper object are incorrectly placed at the GROUP BY clause
django__django-13028Tier C: the issue text repeats lines of the gold patchQueryset raises NotSupportedError when RHS has filterable=False attribute.
django__django-13112Tier C: the issue text repeats lines of the gold patchmakemigrations crashes for ForeignKey with mixed-case app name.
django__django-13406Tier C: the issue text repeats lines of the gold patchQueryset with values()/values_list() crashes when recreated from a pickled query.
django__django-13410Tier C: the issue text repeats lines of the gold patchBug in posix implementation of django/core/files/locks.py
django__django-13964Tier C: the issue text repeats lines of the gold patchSaving parent object after setting on child leads to data loss for parents with non-numeric primary key.
django__django-15382Tier C: the issue text repeats lines of the gold patchfilter on exists-subquery with empty queryset removes whole WHERE block
django__django-15525Tier C: the issue text repeats lines of the gold patchloaddata fails on non-default database when natural keys uses foreign keys.
django__django-16612Tier C: the issue text repeats lines of the gold patchAdminSite.catch_all_view() drops query string in redirects
django__django-17087Tier C: the issue text repeats lines of the gold patchClass methods from nested classes cannot be used as Field.default.
django__django-10880Tier B: the issue points to the file or function that was changedQuery syntax error with condition and distinct combination
django__django-10973Tier B: the issue points to the file or function that was changedUse subprocess.run and PGPASSWORD for client in postgres backend
django__django-11095Tier B: the issue points to the file or function that was changedadd ModelAdmin.get_inlines() hook to allow set inlines based on the request or model instance.
django__django-11119Tier B: the issue points to the file or function that was changedEngine.render_to_string() should honor the autoescape attribute
django__django-11179Tier B: the issue points to the file or function that was changeddelete() on instances of models without any dependencies doesn't clear PKs.
django__django-11206Tier B: the issue points to the file or function that was changedutils.numberformat.format renders small decimals in exponential notation.
django__django-11265Tier B: the issue points to the file or function that was changedUsing exclude on annotated FilteredRelation doesn't work
django__django-11400Tier B: the issue points to the file or function that was changedOrdering problem in admin.RelatedFieldListFilter and admin.RelatedOnlyFieldListFilter
django__django-11490Tier B: the issue points to the file or function that was changedComposed queries cannot change the list of columns with values()/values_list().
django__django-11749Tier B: the issue points to the file or function that was changedcall_command fails when argument of required mutually exclusive group is passed in kwargs.
django__django-11880Tier B: the issue points to the file or function that was changedForm Field’s __deepcopy__ does not (deep)copy the error messages.
django__django-12039Tier B: the issue points to the file or function that was changedUse proper whitespace in CREATE INDEX statements
django__django-12125Tier B: the issue points to the file or function that was changedmakemigrations produces incorrect path for inner classes
django__django-12155Tier B: the issue points to the file or function that was changeddocutils reports an error rendering view docstring when the first line is not empty
django__django-12193Tier B: the issue points to the file or function that was changedSplitArrayField with BooleanField always has widgets checked after the first True value.
django__django-12308Tier B: the issue points to the file or function that was changedJSONField are not properly displayed in admin when they are readonly.
django__django-12713Tier B: the issue points to the file or function that was changedAllow overridding widget in formfield_for_manytomany().
django__django-12754Tier B: the issue points to the file or function that was changedFieldError when migrating field to new model subclass.
django__django-13089Tier B: the issue points to the file or function that was changedcache.backends.db._cull sometimes fails with 'NoneType' object is not subscriptable
django__django-13195Tier B: the issue points to the file or function that was changedHttpResponse.delete_cookie() should preserve cookie's samesite.
django__django-13343Tier B: the issue points to the file or function that was changedFileField with a callable storage does not deconstruct properly
django__django-13344Tier B: the issue points to the file or function that was changedCoroutine passed to the first middleware's process_response() instead of HttpResponse.
django__django-13363Tier B: the issue points to the file or function that was changedAdd support for tzinfo parameter to TruncDate() and TruncTime().
django__django-13401Tier B: the issue points to the file or function that was changedAbstract model field should not be equal across models
django__django-13417Tier B: the issue points to the file or function that was changedQuerySet.ordered property is incorrect for GROUP BY queries on models with Meta.ordering.
django__django-13512Tier B: the issue points to the file or function that was changedAdmin doesn't display properly unicode chars in JSONFields.
django__django-13568Tier B: the issue points to the file or function that was changedSkip auth.E003 system check for USERNAME_FIELD with total UniqueConstraints.
django__django-13670Tier B: the issue points to the file or function that was changeddateformat.y() doesn't support years < 1000.
django__django-13786Tier B: the issue points to the file or function that was changedsquashmigrations does not unset model options when optimizing CreateModel and AlterModelOptions
django__django-13810Tier B: the issue points to the file or function that was changedMiddlewareNotUsed leaves undesired side effects when loading middleware in ASGI context
django__django-14017Tier B: the issue points to the file or function that was changedQ(...) & Exists(...) raises a TypeError
django__django-14034Tier B: the issue points to the file or function that was changedMultiValueField ignores a required value of a sub field
django__django-14089Tier B: the issue points to the file or function that was changedAllow calling reversed() on an OrderedSet
django__django-14170Tier B: the issue points to the file or function that was changedQuery optimization in YearLookup breaks filtering by "__iso_year"
django__django-14238Tier B: the issue points to the file or function that was changedDEFAULT_AUTO_FIELD subclass check fails for subclasses of BigAutoField and SmallAutoField.
django__django-14315Tier B: the issue points to the file or function that was changeddatabase client runshell doesn't respect os.environ values in some cases
django__django-14349Tier B: the issue points to the file or function that was changedURLValidator tests failing on Python versions patched for bpo-43882
django__django-14434Tier B: the issue points to the file or function that was changedStatement created by _create_unique_sql makes references_column always false
django__django-14493Tier B: the issue points to the file or function that was changedManifestStaticFilesStorage crashes with max_post_process_passes = 0.
django__django-14631Tier B: the issue points to the file or function that was changedBaseForm's _clean_fields() and changed_data should access values via BoundField
django__django-14787Tier B: the issue points to the file or function that was changedmethod_decorator() should preserve wrapper assignments
django__django-15022Tier B: the issue points to the file or function that was changedUnnecessary joins in admin changelist query
django__django-15098Tier B: the issue points to the file or function that was changedInternationalisation didn't support language locale containing both script and region.
django__django-15103Tier B: the issue points to the file or function that was changedMake the element_id argument of json_script optional
django__django-15127Tier B: the issue points to the file or function that was changedLEVEL_TAGS not updated when using @override_settings
django__django-15128Tier B: the issue points to the file or function that was changedQuery.change_aliases raises an AssertionError
django__django-15315Tier B: the issue points to the file or function that was changedModel Field.__hash__() should be immutable.
django__django-15375Tier B: the issue points to the file or function that was changedaggregate() with 'default' after annotate() crashes.
django__django-15467Tier B: the issue points to the file or function that was changedModelAdmin with defined radio_fields override empty_label
django__django-15503Tier B: the issue points to the file or function that was changedhas_key, has_keys, and has_any_keys JSONField() lookups don't handle numeric keys on SQLite, MySQL, and Oracle.
django__django-15563Tier B: the issue points to the file or function that was changedWrong behavior on queryset update when multiple inheritance
django__django-15629Tier B: the issue points to the file or function that was changedErrors with db_collation – no propagation to foreignkeys
django__django-15863Tier B: the issue points to the file or function that was changedFilter floatformat drops precision in decimal numbers
django__django-15916Tier B: the issue points to the file or function that was changedAllow ModelForm meta to specify formfield_callback.
django__django-16100Tier B: the issue points to the file or function that was changedAdd transaction handling to Changelist list_editable processing.
django__django-16136Tier B: the issue points to the file or function that was changedobject HttpResponseNotAllowed can't be used in 'await' expression
django__django-16255Tier B: the issue points to the file or function that was changedSitemaps without items raise ValueError on callable lastmod.
django__django-16256Tier B: the issue points to the file or function that was changedacreate(), aget_or_create(), and aupdate_or_create() doesn't work as intended on related managers.
django__django-16454Tier B: the issue points to the file or function that was changedManagement command subparsers don’t retain error formatting
django__django-16560Tier B: the issue points to the file or function that was changedAllow to customize the code attribute of ValidationError raised by BaseConstraint.validate
django__django-16631Tier B: the issue points to the file or function that was changedSECRET_KEY_FALLBACKS is not used for sessions
django__django-16661Tier B: the issue points to the file or function that was changedModelAdmin.lookup_allowed() incorrectly raises DisallowedModelAdminLookup lookup with foreign key as primary key
django__django-16667Tier B: the issue points to the file or function that was changedSelectDateWidget can crash with OverflowError.
django__django-16950Tier B: the issue points to the file or function that was changedDjango Admin with Inlines not using UUIDField default value
django__django-7530Tier B: the issue points to the file or function that was changedmakemigrations router.allow_migrate() calls for consistency checks use incorrect (app_label, model) pairs
django__django-10097disputedMake URLValidator reject invalid characters in the username and password
django__django-10554no quoted evidenceUnion queryset with ordering breaks on ordering with derived querysets
django__django-10999disputedFix parse_duration() for some negative durations
django__django-11087disputedOptimize .delete() to use only required fields.
django__django-11138disputedTIME_ZONE value in DATABASES settings is not used when making dates timezone-aware on MySQL, SQLite, and Oracle.
django__django-11149no quoted evidenceAdmin inlines for auto-created ManyToManyFields are editable if the user only has the view permission
django__django-11211no quoted evidencePrefetch related is not working when used GFK for model that uses UUID field as PK.
django__django-11239no quoted evidenceAdd support for postgresql client certificates and key to dbshell.
django__django-11292disputedAdd --skip-checks option to management commands.
django__django-11299no quoted evidenceCheckConstraint with OR operator generates incorrect SQL on SQLite and Oracle.
django__django-11333disputedOptimization: Multiple URLResolvers may be unintentionally be constructed by calls to `django.urls.resolvers.get_resolver`
django__django-11433no quoted evidenceAllow `cleaned_data` to overwrite fields' default values.
django__django-11477disputedtranslate_url() creates an incorrect URL when optional named groups are missing in the URL pattern
django__django-11555no quoted evidenceorder_by() a parent model crash when Meta.ordering contains expressions.
django__django-11734no quoted evidenceOuterRef in exclude() or ~Q() uses wrong model.
django__django-11740disputedChange uuid field to FK does not create dependency
django__django-11790disputedAuthenticationForm's username field doesn't set maxlength HTML attribute.
django__django-11820no quoted evidencemodels.E015 is raised when Meta.ordering contains "pk" of a related field.
django__django-11885disputedCombine fast delete queries
django__django-11964no quoted evidenceThe value of a TextChoices/IntegerChoices field has a differing type
django__django-12050disputedQuery.resolve_lookup_value coerces value of type list to tuple
django__django-12262no quoted evidenceCustom template tags raise TemplateSyntaxError when keyword-only arguments with defaults are provided.
django__django-12325disputedpk setup for MTI to parent get confused by multiple OneToOne references.
django__django-12406no quoted evidenceModelForm RadioSelect widget for foreign keys should not present a blank option if blank=False on the model
django__django-12708disputedMigration crashes deleting an index_together if there is a unique_together on the same fields
django__django-12774disputedAllow QuerySet.in_bulk() for fields with total UniqueConstraints.
django__django-12858no quoted evidencemodels.E015 is raised when ordering uses lookups that are not transforms.
django__django-12965disputedModel.objects.all().delete() subquery usage performance regression
django__django-13023disputedDecimalField.to_python() raises TypeError on dict values.
django__django-13121no quoted evidencedurations-only expressions doesn't work on SQLite and MySQL
django__django-13128no quoted evidencemake temporal subtraction work without ExpressionWrapper
django__django-13158disputedQuerySet.none() on combined queries returns all results.
django__django-13212disputedMake validators include the provided value in ValidationError
django__django-13297disputedTemplateView.get_context_data()'s kwargs returns SimpleLazyObjects that causes a crash when filtering.
django__django-13315no quoted evidencelimit_choices_to on a ForeignKey can render duplicate options in formfield
django__django-13346no quoted evidenceOn MySQL, Oracle, and SQLite, __in lookup doesn't work on key transforms.
django__django-13516no quoted evidenceflush() on self.stdout/stderr management commands doesn't work.
django__django-13794no quoted evidenceadd filter is unable to concatenate strings with lazy string
django__django-13809disputedAdd --skip-checks option to the runserver command.
django__django-13821disputedDrop support for SQLite < 3.9.0
django__django-13925no quoted evidencemodels.W042 is raised on inherited manually specified primary key.
django__django-14007no quoted evidenceDatabase converters (from_db_value) not called for returning_fields on insert
django__django-14053disputedHashedFilesMixin's post_process() yields multiple times for the same file
django__django-14122disputedMeta.ordering fields must not be included in GROUP BY clause
django__django-14155disputedResolverMatch.__repr__() doesn't handle functools.partial() nicely.
django__django-14351no quoted evidenceQ object __or__ appears to get all dunder related's default columns and queryset raises ProgrammingError.
django__django-14373disputedDateFormat.Y() is not zero-padded.
django__django-14500disputedSquashed migration is not marked as unapplied
django__django-14539links the fix PRurlize() does not handle html escaped string and trailing punctuation correctly
django__django-14608disputedAdd `nonform` CSS class for non form errors in FormSets
django__django-14725disputedProvide a way for model formsets to disallow new object creation
django__django-14771disputedAuto-reloader should pass -X options (for cpython implementation)
django__django-14792disputedReverse time zone conversion in Trunc()/Extract() database functions.
django__django-14999disputedRenameModel with db_table should be a noop.
django__django-15037no quoted evidenceForeign key to a specific field is not handled in inspectdb
django__django-15161disputedUse simplified paths for deconstruct of expressions
django__django-15252disputedMigrationRecorder does not obey db_router allow_migrate rules
django__django-15268disputedOptimize multiple AlterFooTogether operations into one
django__django-15278no quoted evidenceAdding nullable OneToOneField crashes on SQLite.
django__django-15280disputedDeferred fields incorrect when following prefetches back to the "parent" object
django__django-15380disputedMigration autodetector crashes when renaming a model and field.
django__django-15499no quoted evidenceOptimize CreateModel + AlterModelManagers to CreateModel
django__django-15554disputedUsing multiple FilteredRelation with different filters but for same relation is ignored.
django__django-15561disputedAlterField operation should be noop when adding/changing choices on SQLite.
django__django-15572disputedDjango 3.2.4+ autoreload breaks on empty string in TEMPLATES DIRS.
django__django-15695disputedRenameIndex() crashes when unnamed index is moving backward and forward.
django__django-15732disputedCannot drop unique_together constraint on a single field with its own unique=True constraint
django__django-15741disputeddjango.utils.formats.get_format should allow lazy parameter
django__django-15930no quoted evidenceCase() crashes with ~Q(pk__in=[]).
django__django-15957no quoted evidencePrefetch objects don't work with slices
django__django-15973no quoted evidenceDefining the "through" model in a many-to-many field in another app causes "AttributeError: 'str' object has no attribute '_meta'" on migration
django__django-15987disputedFixture dirs duplicates undetected if dir is Path instance
django__django-16082disputedResolve output_field when combining numeric expressions with MOD operator.
django__django-16116disputedmakemigrations --check generating migrations is inconsistent with other uses of --check
django__django-16145disputed`runserver 0`'s "Starting development server at <address>" doesn't work
django__django-16263disputedStrip unused annotations from count queries
django__django-16485no quoted evidencefloatformat() crashes on "0.00".
django__django-16502disputedAfter #26052 runserver returns response body for HTTP HEAD requests
django__django-16642no quoted evidenceImproper guessing of Mime Type for "br" and "Z" file types
django__django-16662no quoted evidenceMigration import ordering violates coding style and isort defaults
django__django-16801disputedImageField unnecessarily adds a post_init signal handler to the model
django__django-16819no quoted evidenceReduce Add/RemoveIndex migration operations.
django__django-16877no quoted evidenceNew template filter `escapeseq`
django__django-16899no quoted evidenceModelAdmin: Error message for readonly_fields's check does not include the field name
django__django-16901no quoted evidenceOn databases lacking XOR, Q(…) ^ Q(…) ^ Q(…) wrongly interpreted as exactly-one rather than parity
django__django-17084no quoted evidenceCannot use aggregate over window functions since 4.2