Skip to content

Commit

Permalink
Rename last_version
Browse files Browse the repository at this point in the history
  • Loading branch information
fao89 authored and daviddavis committed Feb 24, 2020
1 parent 166174a commit aa22d82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/6147.removal
@@ -0,0 +1 @@
Renaming RpmRepository.last_version to RpmRepository.next_version
4 changes: 1 addition & 3 deletions pulp_rpm/app/models/repository.py
Expand Up @@ -70,10 +70,8 @@ def new_version(self, base_version=None):
with transaction.atomic():
version = RepositoryVersion(
repository=self,
number=int(self.last_version) + 1,
number=int(self.next_version),
base_version=base_version)
self.last_version = version.number
self.save()
version.save()

if base_version:
Expand Down

0 comments on commit aa22d82

Please sign in to comment.