Commit Graph

452 Commits

Author SHA1 Message Date
0a93c65f20 Purge /community/ when changing a survey
Without this only the survey result page is purged, not the actual
survey form on the main page.
2016-12-14 15:25:02 +01:00
9d99280bad Ensure we don't have any trailing slashes when matching paths in the ftp site pickle. 2016-12-06 13:58:25 +00:00
92dcb0a23d Handle symlinks properly in the directory browser.
This change properly handles symlinks by expanding any it finds in the path
and issuing a redirect to the canonical location.

Whilst we're here, display links as such on the pages, sort directory listings
so the parent link is always at the top, and avoid unnecessary redirects caused
by missing /'s on URLs.
2016-11-30 17:51:33 +09:00
2d1809c5eb Planet PostgreSQL is now https 2016-11-22 21:19:00 +01:00
c5d162dee7 Catch and handle recaptcha API errors
Just send the user an API error and they can try again. Better than
internal server error + email to webmaster... Seems to be caused by
intermittent network issues.
2016-11-14 18:53:42 +01:00
caf152eb62 Fix path to manage.py 2016-11-14 17:07:58 +00:00
86186a1310 Add missing module name 2016-11-09 23:07:04 +01:00
5cef3c44f0 Trap integer overflow errors in search query
This just caused a database error to leak through to the user, but also
flooded the logs.
2016-11-09 23:00:07 +01:00
d9c8c089cb Handle migrated records with NULL in them when building diff 2016-11-07 20:17:58 +01:00
42e68546d0 Remove references to Alpha versions, as we don't do them anymore
Also noted by Christoph Berg
2016-10-01 13:08:19 +02:00
3001715ce6 Make v96 visible in feature matrix
Per request from Berkus
2016-09-27 14:00:51 +02:00
6bb3b040a2 Add version 9.6 to feature matrix
By default it's hidden, and we copy the current value for all features
from 9.5.
2016-09-22 14:57:29 +02:00
5d07b06fb3 Add now mandatory send_notificatins attribute to PUGs 2016-09-21 22:03:01 +02:00
d5c4af13f9 Fix link to Russian documentation
One link was updated and one missed in
df4a433b19. This makes them consistent.

Pavel Luzanov
2016-09-08 19:11:26 +02:00
6a65f96476 Fix(ish) notifications for new objects with Unicode in value
Previous code triggered a conversion from unicode to ascii inside the
django framework, which would throw an exception when the object itself
returned unicode in the name.

The new version will work around that by actually checking the primary
key first.

This still doesn't work insofar that any changes to a many2many fields
are now lost. This did not work properly before either, but this
probably made it a bit work. We definitely need to fix this properly at
some point, probably by using the m2m_changed signal handler (but it's
not straight forward as this is now a separate signal and we'll somehow
want to track this indepdendently)
2016-08-22 11:50:21 +02:00
0b30089d34 add docs translated to russian - patch from Pavel Luzanov on -www 2016-08-10 21:58:10 +02:00
9b7a44da57 Move /selectable/ into /admin/ to avoid caching issues
Since we only use it for /admin/ for now, we can safely put it there
until we change that.
2016-06-23 18:06:05 +02:00
27e1c73368 Implement auto-complete for /admin/ forms that reference User
We have so many users now that loading these forms take forever.
Instead, implement a textbox with autocomplete using django-selectable,
which will not load the whole list of users at once.
2016-06-23 17:59:45 +02:00
a6d3b44038 Import django-selectable
This will also be used to do /admin/ autocompletes.
2016-06-23 17:59:45 +02:00
4920f460aa Don't include /devel/ docs in sitemap
This conflicts with what we had in robots.txt, and generates many
thousands of warnings by Google (and possibly others).
2016-05-31 15:25:45 +02:00
a0b1c9242f Fix embarassing typo
That's what happens when a commit is not properly tested
2016-05-24 21:42:31 +02:00
66750c136a Allow logins in /admin/ as well
Required for our custom admin pages.
2016-05-24 21:39:22 +02:00
7fc34e9eaf Replace login_required decorator with a validating one
This one will validate that the url is under /accounts/, which is
the only part we are going to be excluding from caching once we
move the website to https-only.
2016-05-24 21:14:34 +02:00
9bcaa6ab33 Remove the "is behind cache" functionality
We're always behind cache now (we may or may not be cached, but that's
not what this check was about)
2016-05-24 21:14:33 +02:00
fd904ebc27 Fix robots.txt in https only scenario
We now allow all searching
2016-05-24 21:14:33 +02:00
319412156e Secure csrf tokens
Since we have no forms over non-http now, make sure the cookies are
locked
2016-05-24 21:14:33 +02:00
3c089cd09a Remove SSL decorators and middleware
The site is now served regardless of SSL, and assumes that the webserver
or web cache ensures that things rae always SSL.
2016-05-24 21:13:00 +02:00
753d20545a Remove SSL optional tag 2016-05-24 21:13:00 +02:00
0a5213b2b6 Change more http -> https 2016-05-24 21:13:00 +02:00
a126594260 Update sitemap URLs for https 2016-05-24 21:13:00 +02:00
b1ae5f8ec0 Remove workaround for django bug #15152.
This bug is fixed before django 1.8, so remove our workaround which
should now be unnecessary.
2016-05-19 14:23:52 -04:00
385dd66a7c Remove workaround for persistent admin filters
Persistent admin filters are fixed in django 1.8
2016-05-19 14:23:47 -04:00
2952b39754 Replace interactive docs with docs bug reporting
Per discussion from a long time ago, interactive docs aren't really
working out. The majority of submissions are either support questions
(which then get rejected because they cannot be answered in this
context) or pointing out docs incorrectnesses (which should be submitted
as a docs bug instead, so they can actually be fixed in the main
documentation).

Old references to /interactive/ will get redirected to /static/
automatically, and we expect to keep doing that for a long time (since
there are many links to them around the net).
2016-05-19 10:42:44 -04:00
a0915e925a Remove empty struct.py file
No longer used since the change of the bug form to be under /account/,
but an empty struct.py file causes sitemap to fail.
2016-05-18 10:11:34 -04:00
cd37dac7fd Move submitbug under /account/
In passing make it require ssl, make it no longer csrf-exempt,
and make it require a login so we don't let unauthenticated emails
through.
2016-05-17 17:37:09 -04:00
587d2239a3 Token generation for new account now matches new password reset code. 2016-05-16 11:21:47 -04:00
458f4fa0da Pass in "last_login" explicitly when creating User account. 2016-05-16 10:44:51 -04:00
b9e2468c84 Add missing import 2016-05-15 20:56:45 +02:00
118b1193b8 Remove pwn module and links
The pwn module has never been used, as the pwn are simply sent to
-announce and nothing else. We've kept the code and model around for
doing it on the site for years now and it's unused, so let's remove it
to cut down on maintenance cost.
2016-05-14 22:17:07 +02:00
04d458d13e More fixes for today -> today() 2016-05-14 21:50:15 +02:00
79350c87d9 Remove old mirror selection code and data
This has not been used for many years now, so let's get rid of
it to save some maintenance.
2016-05-14 21:42:38 +02:00
59166227fd today() is a function
Callables in querysets are deprecated, so make sure we don't end
up using them unintentionally...
2016-05-14 21:29:59 +02:00
7c20836991 Fixed "reset password" pattern matcher to match the Django 1.8 method for generating and reading reset password tokens. 2016-05-14 15:07:09 -04:00
e535956115 Stop using request.REQUEST
This is now deprecated and we should use request.GET instead.
2016-05-14 20:47:47 +02:00
cb1ff8bbf1 Substitute "request.raw_post_data" with the new attribute "request.body" 2016-05-14 14:27:25 -04:00
f3e1a189b4 Move django-inteacting tools to be management commands
Much easier to execute them in the correct environment now that we have
proper management commands in django.
2016-05-14 19:49:13 +02:00
a8500c3853 Add migrations for all existing models
When migrating on existing installations, run the

python manage.py migrate --fake-initial

command.
2016-05-14 19:49:12 +02:00
c97ea7cf4d Fix default value for language
Needs to be a static value for it to work properly once we enable
migrations.
2016-05-14 19:49:12 +02:00
217f9ef62a Fix model warnings and deprecations
1. ForeignKey with unique -> OneToOneField
2. IPAddressField -> GenericIPAddressField
3. Fix fields with default=datetime.now() which gives server start time,
   not the insert time (clearly this default was never used, and the
   field was always explicitly set, but it should still not be incorrectly
   defined)
2016-05-14 19:49:12 +02:00
fd689e01c9 module_name has been renamed to model_name 2016-05-14 19:49:12 +02:00