mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-23 15:02:54 +03:00
Don't treat current version as newer
This commit is contained in:
parent
9db2752598
commit
bdc4c323f9
|
@ -108,7 +108,7 @@ def get_all_latest_django_versions(
|
|||
current_minor_version = DjVersion.parse(current_version_str)
|
||||
newer_versions: set[DjVersion] = set()
|
||||
for django_version in get_django_versions():
|
||||
if _django_max_version >= django_version >= current_minor_version:
|
||||
if current_minor_version < django_version <= _django_max_version:
|
||||
newer_versions.add(django_version)
|
||||
|
||||
return current_minor_version, sorted(newer_versions, reverse=True)
|
||||
|
|
Loading…
Reference in New Issue
Block a user