Skip to content

Commit

Permalink
Align list of SFOS releases ≥ 1.1.9 with …
Browse files Browse the repository at this point in the history
https://coderus.openrepos.net/whitesoft/sailversion
Additionally order list of categories correctly (i.e., alphabetically, except for "other"), omit duplicate "homescreen" entry and rectify display name "Others" to "Other".
  • Loading branch information
Olf0 authored and CODeRUS committed Feb 4, 2023
1 parent 3d76351 commit 45e4be2
Showing 1 changed file with 77 additions and 55 deletions.
132 changes: 77 additions & 55 deletions example/demo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def validate_name(text):

category_default = "other"
category_choices = (
("homescreen", "Homescreen"),
("browser", "Browser"),
("camera", "Camera"),
("calendar", "Calendar"),
Expand All @@ -33,13 +32,13 @@ def validate_name(text):
("email", "Email"),
("gallery", "Gallery"),
("homescreen", "Homescreen"),
("keyboard", "Keyboard"),
("media", "Media"),
("messages", "Messages"),
("phone", "Phone"),
("silica", "Silica"),
("settings", "Settings"),
("keyboard", "Keyboard"),
("other", "Others")
("silica", "Silica"),
("other", "Other")
)

description = models.CharField(max_length=4096, blank=False)
Expand Down Expand Up @@ -69,59 +68,82 @@ def upload_path_handler(instance, filename):

fs = OverwriteStorage()

compatible_choices_default = "2.1.1.24"
compatible_choices_default = "4.4.0.72"
compatible_choices = (
("1.1.9.30", "1.1.9.30"),
("2.0.0.10", "2.0.0.10"),
("2.0.1.11", "2.0.1.11"),
("2.0.2.51", "2.0.2.51"),
("2.0.3.14", "2.0.3.14"),
("2.0.4.14", "2.0.4.14"),
("2.0.5.6", "2.0.5.6"),
("2.1.0.11", "2.1.0.11"),
("2.1.1.12", "2.1.1.12"),
("2.1.1.23", "2.1.1.23"),
("2.1.1.24", "2.1.1.24"),
("2.1.1.26", "2.1.1.26"),
("2.1.2.3", "2.1.2.3"),
("2.1.3.3", "2.1.3.3"),
("2.1.3.5", "2.1.3.5"),
("2.1.3.7", "2.1.3.7"),
("2.1.4.13", "2.1.4.13"),
("2.1.4.14", "2.1.4.14"),
("2.1.4.15", "2.1.4.15"),
("2.2.0.29", "2.2.0.29"),
("2.2.1.18", "2.2.1.18"),
("2.2.1.19", "2.2.1.19"),
("3.0.0.5", "3.0.0.5"),
("3.0.0.8", "3.0.0.8"),
("3.0.0.11", "3.0.0.11"),
("3.0.1.11", "3.0.1.11"),
("3.0.1.14", "3.0.1.14"),
("3.0.2.8", "3.0.2.8"),
("3.0.3.8", "3.0.3.8"),
("3.0.3.9", "3.0.3.9"),
("3.0.3.10", "3.0.3.10"),
("3.1.0.11", "3.1.0.11"),
("3.2.0.12", "3.2.0.12"),
("3.2.0.14", "3.2.0.14"),
("3.2.1.19", "3.2.1.19"),
("3.2.1.20", "3.2.1.20"),
("3.3.0.14", "3.3.0.14"),
("3.3.0.16", "3.3.0.16"),
("3.4.0.22", "3.4.0.22"),
("3.4.0.24", "3.4.0.24"),
("4.0.1.45", "4.0.1.45"),
("4.0.1.48", "4.0.1.48"),
("4.1.0.24", "4.1.0.24"),
("4.2.0.19", "4.2.0.19"),
("4.2.0.21", "4.2.0.21"),
("4.3.0.12", "4.3.0.12"),
("4.3.0.15", "4.3.0.15"),
("4.4.0.58", "4.4.0.58"),
("4.4.0.64", "4.4.0.64"),
("4.5.0.16", "4.5.0.16"),
("4.4.0.72", "4.4.0.72"),
("4.4.0.68", "4.4.0.68"),
("4.4.0.72", "4.4.0.72")
("4.4.0.64", "4.4.0.64"),
("4.4.0.58", "4.4.0.58"),
("4.3.0.15", "4.3.0.15"),
("4.3.0.12", "4.3.0.12"),
("4.2.0.21", "4.2.0.21"),
("4.2.0.19", "4.2.0.19"),
("4.1.0.24", "4.1.0.24"),
("4.1.0.23", "4.1.0.23"),
("4.0.1.48", "4.0.1.48"),
("4.0.1.45", "4.0.1.45"),
("3.4.0.24", "3.4.0.24"),
("3.4.0.22", "3.4.0.22"),
("3.3.0.16", "3.3.0.16"),
("3.3.0.14", "3.3.0.14"),
("3.2.1.20", "3.2.1.20"),
("3.2.1.19", "3.2.1.19"),
("3.2.0.14", "3.2.0.14"),
("3.2.0.12", "3.2.0.12"),
("3.1.0.12", "3.1.0.12"),
("3.1.0.11", "3.1.0.11"),
("3.0.3.10", "3.0.3.10"),
("3.0.3.9", "3.0.3.9"),
("3.0.3.8", "3.0.3.8"),
("3.0.2.8", "3.0.2.8"),
("3.0.1.14", "3.0.1.14"),
("3.0.1.13", "3.0.1.13"),
("3.0.1.11", "3.0.1.11"),
("3.0.0.11", "3.0.0.11"),
("3.0.0.8", "3.0.0.8"),
("3.0.0.5", "3.0.0.5"),
("3.0.0.11", "3.0.0.11"),
("2.2.1.23", "2.2.1.23"),
("2.2.1.20", "2.2.1.20"),
("2.2.1.19", "2.2.1.19"),
("2.2.1.18", "2.2.1.18"),
("2.2.0.29", "2.2.0.29"),
("2.1.4.15", "2.1.4.15"),
("2.1.4.14", "2.1.4.14"),
("2.1.4.13", "2.1.4.13"),
("2.1.4.12", "2.1.4.12"),
("2.1.3.7", "2.1.3.7"),
("2.1.3.5", "2.1.3.5"),
("2.1.3.3", "2.1.3.3"),
("2.1.2.3", "2.1.2.3"),
("2.1.1.26", "2.1.1.26"),
("2.1.1.24", "2.1.1.24"),
("2.1.1.25", "2.1.1.25"),
("2.1.1.23", "2.1.1.23"),
("2.1.1.12", "2.1.1.12"),
("2.1.0.11", "2.1.0.11"),
("2.1.0.10", "2.1.0.10"),
("2.1.0.9", "2.1.0.9"),
("2.0.5.6", "2.0.5.6"),
("2.0.4.14", "2.0.4.14"),
("2.0.4.13", "2.0.4.13"),
("2.0.3.14", "2.0.3.14"),
("2.0.3.11", "2.0.3.11"),
("2.0.2.51", "2.0.2.51"),
("2.0.2.48", "2.0.2.48"),
("2.0.2.47", "2.0.2.47"),
("2.0.2.45", "2.0.2.45"),
("2.0.2.43", "2.0.2.43"),
("2.0.1.11", "2.0.1.11"),
("2.0.1.9", "2.0.1.9"),
("2.0.1.7", "2.0.1.7"),
("2.0.0.10", "2.0.0.10"),
("1.1.9.30", "1.1.9.30"),
("1.1.9.28", "1.1.9.28"),
("1.1.9.27", "1.1.9.27"),
("1.1.9.24", "1.1.9.24"),
("1.1.9.23", "1.1.9.23")
)

def validate_file_type(upload):
Expand Down

0 comments on commit 45e4be2

Please sign in to comment.