Skip to content

Commit 86c007d

Browse files
authored
Add Feed to monkeypatch to fix generic issue. (#1002)
Fixes #1001
1 parent 6330305 commit 86c007d

File tree

1 file changed

+2
-0
lines changed
  • django_stubs_ext/django_stubs_ext

1 file changed

+2
-0
lines changed

django_stubs_ext/django_stubs_ext/patch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from django import VERSION as VERSION
44
from django.contrib.admin import ModelAdmin
55
from django.contrib.admin.options import BaseModelAdmin
6+
from django.contrib.syndication.views import Feed
67
from django.core.paginator import Paginator
78
from django.db.models.fields import Field
89
from django.db.models.manager import BaseManager
@@ -52,6 +53,7 @@ def __repr__(self) -> str:
5253
MPGeneric(BaseFormSet),
5354
MPGeneric(BaseModelForm),
5455
MPGeneric(BaseModelFormSet),
56+
MPGeneric(Feed),
5557
# These types do have native `__class_getitem__` method since django 3.1:
5658
MPGeneric(QuerySet, (3, 1)),
5759
MPGeneric(BaseManager, (3, 1)),

0 commit comments

Comments
 (0)