summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-05-13homepage.js: remove leftover minified konami.jsrelease_2018-05-15Jelle van der Waa1-4/+0
Remove the unused Konami code library, the functionality was already removed in c79dc7dcf4a13e3.
2018-05-11Add coverage to gitignoreFrank Vanderham1-0/+3
Added the .coverage file to gitignore.
2018-05-11Remove reference to syncisos from readmeFrank Vanderham1-1/+0
The readme instructs the user to run: ./manage.py syncisos But this custom function no longer exists and therefore generates an error. This commit removes the reference from the readme.
2018-05-07Remove calls to order_by() without parametersFrank Vanderham2-5/+5
Calls to order_by() without passing any parameters was causing UnorderedObjectListWarning during unit tests. The failing unit tests were testing the sitemap functionality. Sitemaps utilize Paginators, which require either the entity ordering as specified in their Meta object, or a specific ordering in the QuerySet, otherwise this warning is issued.
2018-05-07Merge pull request #105 from kyrias/mirror-list-tierjelle van der Waa3-1/+17
mirrors: Allow listing mirrors in only a specific tier
2018-05-07Merge pull request #93 from jelly/vagrant_image_downloadjelle van der Waa1-0/+7
public: Add vagrant image link to download page
2018-05-07public: Add vagrant image link to download pageJelle van der Waa1-0/+7
Mention the official Vagrant image on the download page and where to find it.
2018-05-07Merge pull request #104 from jelly/django_updatejelle van der Waa1-1/+1
requirements: Update django to 1.11.13
2018-05-05mirrors: Add basic status code test for /mirrorlist/tierJohannes Löthberg1-0/+10
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-05-05mirrors: Allow listing mirrors in only a specific tierJohannes Löthberg2-1/+7
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-05-03requirements: Update django to 1.11.13Jelle van der Waa1-1/+1
Minor bugfix release which fixes two regressions and one crash.
2018-04-23Merge pull request #100 from jelly/weirdcssjelle van der Waa1-25/+0
Clean up CSS
2018-04-23sitestatic: remove dead css from releng feedbackJelle van der Waa1-21/+0
Remove leftover css which is obsolete since 2ff2b26aa92c8e
2018-04-23sitestatic: remove unknown css propertyJelle van der Waa1-4/+0
depressed doesn't seem to be a css property, nor being parsed by the browser, therefore remove it.
2018-04-23Merge pull request #97 from jelly/formjelle van der Waa3-13/+31
Form
2018-04-23Merge pull request #96 from jelly/django_1.11jelle van der Waa1-1/+1
Update django to 1.11.12
2018-04-23Merge pull request #99 from archlinux/felixonmars-patch-1jelle van der Waa1-1/+1
Fix a typo
2018-04-23Fix a typoFelix Yan1-1/+1
2018-04-22mirrorlist: Complete /all/https success test caseGenki Sky1-6/+10
Also, remove test_generate(), as it was testing no more than test_mirrorlist_filter() already was. Signed-off-by: Genki Sky <sky@genki.is>
2018-04-22mirrorlist: Accept GET parameters as filtersGenki Sky3-8/+22
This fixes a regression. Originally request.REQUEST was used, but django 1.9 removed this. In its stead, request.POST was used unconditionally. However, this results in any GET request returning *all* mirrors, rather than filtering as requested in the parameters. This patch uses POST or GET based on the request method. This fixes the behavior of the [mirror-filter-form], and any scripts depending on the generated URL format. Accordingly, make test_mirrorlist_filter() test both the success and failure cases, rather than just success. [mirror-filter-form]: https://www.archlinux.org/mirrorlist/ Signed-off-by: Genki Sky <sky@genki.is>
2018-04-21Update django to 1.11.12Jelle van der Waa1-1/+1
This django release contains two small bugfixes.
2018-04-20Merge pull request #94 from grazzolini/staff_groupjelle van der Waa1-1/+1
Fix the StaffGroup query
2018-04-20Fix the StaffGroup queryGiancarlo Razzolini1-1/+1
Due to changes to Django 1.11, this didn't return the object. Fix to get the object instead of the queryset.
2018-04-20Merge pull request #88 from archlinux/upgrade_djangojelle van der Waa55-305/+294
Upgrade django
2018-04-08packages: Add missing argsJelle van der Waa1-0/+3
Add missing add_argument to parse args.
2018-04-08treewide: context must be a dict rather than ContextJelle van der Waa5-15/+15
Passing Context has been removed in Django 11, a dict should rather be passed.
2018-04-08devel: Templatetest should be a SimpleTestJelle van der Waa1-3/+2
The test uses database queries and should therefore be a TestCase.
2018-04-08Add missing dependencyJelle van der Waa1-0/+1
2018-04-08Update urls.py to non relative importsJelle van der Waa7-16/+13
2018-04-08todolists/models: non-relational field given for 'username'Jelle van der Waa1-1/+1
Use user__userprofile instead of user__username for filter.
2018-04-08Add missing requirement django_jinjaJelle van der Waa1-0/+1
2018-04-08templates: fix cycle syntaxJelle van der Waa1-1/+1
According to the docs cycle takes two string arguments.
2018-04-08devel/tests/test_user: Fix tests to now expect a relative URLJohannes Löthberg1-3/+3
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08main/storage: Switch from Cached to ManifestStaticFilesStorageJohannes Löthberg1-2/+2
Django explicitly recommends against using CachedStaticFilesStorage, partially because it performs worse. It also breaks our tests with our Minified subclassing of it. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08public/views: pgp_key is not a foreign relation, so cannot be select_relatedJohannes Löthberg1-4/+2
Wonder how old this bug is.. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08urls: Give / the name indexJohannes Löthberg1-1/+1
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08Fix reporead test for new error messageJohannes Löthberg1-1/+1
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08Change urls.py from patterns to list of url()Johannes Löthberg10-181/+190
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08cdn: mark jquery <script> as safeJelle van der Waa1-1/+2
Mark jquery script tag as safe otherwise django won't output it as html.
2018-04-08Stop loading cycle from future everywhereJohannes Löthberg16-16/+0
It's available already since we're no longer in the past, and can't load from future *in* the future. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08README: django 1.9 removed the syncdb commandJelle van der Waa1-8/+4
Instead of syncdb, migrate should be used now.
2018-04-08settings: Update to Django 1.8+Jelle van der Waa1-1/+1
Built-in template context processors were moved from django.core.context_processors to django.template.context_processors in Django 1.8.
2018-04-08devel: update management commands to django 1.10Jelle van der Waa2-0/+6
2018-04-08rematch_developers: Update to Django 1.10Jelle van der Waa1-4/+4
Make rematch_developers compatible with Django 1.10 by switching to a BaseCommand class.
2018-04-08Remove update_types_permissions management commandJelle van der Waa1-25/+0
Remove the management command which reloads permissions for specified apps or all apps if no args are specified. This management command looks broken since create_permissions has verbosity as it's second parameter and not a list of models.
2018-04-08mirrorresolv: update to Djang 1.10Jelle van der Waa1-3/+3
Update to BaseCommand.
2018-04-08mirrorcheck: Update to Django 1.10Jelle van der Waa1-10/+16
Use BaseCommand instead of the deprecated NoArgsCommand.
2018-04-08populate_signoffs: NoArgsCommand removed in Django 1.10Jelle van der Waa1-3/+3
Update the code to use BaseCommand instead of the removed NoArgsCommand.
2018-04-08Remove unused importJelle van der Waa1-1/+0
2018-04-08reporead: Fix compatibility with Django 1.9Jelle van der Waa1-7/+15
Django 1.9 removed the option_list and requires an add_arguments to be overloaded to specify the arguments.