Skip to content

self.log_date.strftime in section "Python/Django Tutorial" chapter "Define models" #2252

Closed
@matiaso11

Description

@matiaso11

In section "Python/Django Tutorial" chapter "Define models" there is pylint [E1101]:
[pylint] Instance of 'DateTimeField' has no 'strftime'...

Refering to stackoverflow
"timezone.localtime" function has fixed the problem.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions