Skip to content

Commit

Permalink
AbstractBaseSession: Use model fields for subclassed cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed May 24, 2024
1 parent d03eaf1 commit a2c020b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django-stubs/contrib/sessions/base_session.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class BaseSessionManager(models.Manager[_T]):
def save(self, session_key: str, session_dict: dict[str, Any], expire_date: datetime) -> _T: ...

class AbstractBaseSession(models.Model):
expire_date: datetime
session_data: str
session_key: str
session_key: models.CharField(primary_key=True)
session_data: models.TextField()
expire_date: models.DateTimeField()
objects: Any

@classmethod
Expand Down

0 comments on commit a2c020b

Please sign in to comment.