versioning and wp plugin updates
This commit is contained in:
@@ -64,7 +64,7 @@ class Plugin(models.Model):
|
||||
def get_latest_version(self):
|
||||
"""Get the latest released version of this plugin."""
|
||||
return self.versions.filter(
|
||||
status__in=['released', 'update_ready']
|
||||
status='released'
|
||||
).first()
|
||||
|
||||
def get_download_count(self):
|
||||
@@ -80,11 +80,8 @@ class PluginVersion(models.Model):
|
||||
"""
|
||||
|
||||
STATUS_CHOICES = [
|
||||
('draft', 'Draft'), # In development
|
||||
('testing', 'Testing'), # Internal testing
|
||||
('staged', 'Staged'), # Ready, not yet pushed
|
||||
('released', 'Released'), # Available for download
|
||||
('update_ready', 'Update Ready'), # Push to installed sites
|
||||
('draft', 'Draft'), # In development - NOT available for download
|
||||
('released', 'Released'), # Available for download and updates
|
||||
('deprecated', 'Deprecated'), # Old version, not recommended
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user