Commit graph

26 commits

Author SHA1 Message Date
Ole Laursen b78109ff34 Fix bug in Django admin login redirect
- Legacy-Id: 7096
2014-01-10 13:19:23 +00:00
Ole Laursen b54f3d05cd Redo non-obsoleted patches to Django - hiding password change in admin, username max_length, JSON serialization of timedelta and debug hack to DoesNotExist so .get() shows the kwargs
- Legacy-Id: 6873
2013-12-11 14:32:13 +00:00
Ole Laursen 1654988abc Replace patched Django 1.2.7 with Django 1.6
- Legacy-Id: 6871
2013-12-11 13:59:17 +00:00
Henrik Levkowetz d2d1c839c9 Revert changes to two django files which should not have been part of [6724].
- Legacy-Id: 6725
Note: SVN reference [6724] has been migrated to Git commit 8f67ca6826
2013-11-21 16:40:28 +00:00
Henrik Levkowetz 8f67ca6826 Changed the password reset URL which is sent out in the password reset email
message to use https: instead of http:.  This is generally a good idea, and
also silences Google Chrome's phishing warning.  Fixes issue #1204.

This commit should have contained only changes to a template file; by
mistake, changes to two django files were also committed here.  That
change has been undone in [6725].
 - Legacy-Id: 6724
Note: SVN reference [6725] has been migrated to Git commit ca1a04f660aa0473bf8f3aadc7809d462ac4cac0
2013-11-21 16:35:22 +00:00
Henrik Levkowetz 43fcce48fd Tweaked the exception message for Django's DoesNotExist messages to make it easier to figure out the situation.
- Legacy-Id: 6316
2013-09-30 18:57:16 +00:00
Henrik Levkowetz d737216440 Reverted the changes to django from branch/ssw/agenda/v4.70.
- Legacy-Id: 6276
2013-09-26 20:02:05 +00:00
Henrik Levkowetz 6154b9922d This commit isn't tested. It captures the state after merging in branch/ssw/agenda/v4.70.
- Legacy-Id: 6273
2013-09-26 19:56:17 +00:00
Henrik Levkowetz 1980f9b11f Provide the missing safe_rep function required in the back-ported assertIsNone() test case method.
- Legacy-Id: 6261
2013-09-24 19:38:13 +00:00
Henrik Levkowetz e678659b56 Merged in a lot of shim-layer removals from olau@iola.dk
(-r5194:5465 from branch/iola/shimfree).  Copying relevant
commit messages here:

  - Removed .related many to many relationship, it's not really useful
    since we always have to restrict on the relationship type anyway,
    instead add two helpers for doing the necessary queries (in both
    directions)

  - Added migration for transforming the .desc on the new_revision events
    into something more akin to what is actually shown in the history page

  - Added migration for blanking IESG notes that just consist of "RFC
    XXXX", these have been superfluous for some time

  - Grant stream chairs access to changing the stream on a draft

  - Hacked the format_history_text filter to be less weird, using the same
    formatting for snippets and full text, also link up legacy ballot set
    events

  - Moved the decoraters + utilities to new ietfauth/utils.py file

  - Added simple helper to Email to identify invalid email addresses (from
    legacy author entries)

  - Used new new_revision .desc format for when drafts are submitted

  - Improved the looks of the button class by adding extra contrast and a
    linear gradient. Currently the gradient is only visible in fairly
    recent browsers.

  - Rewrote draft and RFC tabs in terms of the new schema, porting
    write-up and history tabs as well

  - Fixed two bugs in RFC Editor syncing: make sure documents we don't know
    beforehand get a "draft" type and make sure individually submitted
    drafts get the type="individ" group instead of NULL

  - Made the CSS-styled button feel a bit nicer to use by flattening the
    active state, also introduce some temporary styles until browsers
    catch up with the standard syntax

  - Added migrations for fixing 1) a dummy RFC entry, 2) three stand-alone
    RFCs that didn't get their doc.type set, 3) a big bunch of historic
    stand-alone RFCs that have doc.group=None - set these to the
    individual submission "none" group for the time being so the view code
    doesn't have to deal with a special case.

    In some cases this is wrong since there actually was a WG associated
    but unfortunately fixing them properly requires detective work
    (probably parsing the RFCs) and in at least some cases recreating
    historic WGs. In case someone ends up doing this, the documents to
    check can still be found with

    Document.objects.filter(name__startswith="rfc", group__type="individ")
    since there are almost no new RFCs that didn't went through the I-D
    process.

  - Merged the I-D and RFC views by showing I-D information on RFCs too.
    I-Ds that have been published as RFCs redirect to the RFC URL. Also
    support alias URLs so e.g. /doc/bcpXXXX redirects to /doc/rfcXXXX.

  - Fixed revision augmentation so events after RFC publication gets a "RFC"
    designation

  - Fixed a bug with tabs not using provided name but rather doc.name

  - Displaying draft-iesg state rather than doc.friendly_state as IESG state,
    also show a notice that the IESG state refers to post-RFC processing
    if it does, like the old separate RFC page did

  - Fixed the RFC number doc.note migration to catch combined "RFC XXX; BCP
    XXX" notes too, use the opportunity to remove inserted HTML tags from
    notes and rely on linebreaksbr filter instead (the other thing was a
    left-over from the Perl days), update the various uses of the note to
    reflect that

  - Refactored slightly to make views_doc.py independent of other idrfc code

  - Moveed idrfc/views_doc.py to doc/ with associated templates, replace the
    somewhat fragile simple URL tests for views_doc.py with ordinary unit
    tests. The new tests are still fairly basic but at least test more
    than the URL tests did.

  - Made sure RFC's (and BCP/STD/FYI) are stored as RFC123 instead of
    RFC0123 in the alias table with a new migration and a change to the
    RFC Editor sync, this in turn makes /doc/std1/ do the right thing

  - Now /doc/std1/ works, we can actually do a local link in
    urlize_ietf_docs rather than linking to the tools.ietf.org server

  - Fixed history text formatter: sanitize HTML before adding linebreaks and
    non-breaking spaces, this cuts the time to render a history page with
    long comments in half

  - Added a test crawler that walks through the crawlable part of the site,
    reporting errors and slow pages

  - Got rid of initial "No record" positions when showing old positions,
    it's just noise

  - Added a .select_related() to the document main tab to reduce the number
    of DB queries, unfortunately it seems it doesn't really help with
    Django 1.2.x due to a bug (Document inherits from DocumentInfo which
    makes things a bit more complicated)

  - Introduced a simple cache in doc.get_state so repeated reads don't
    cause a DB query

  - Cleaned up the search code in preparation for removal of the shim-layer;
    use a static button and don't send extraneous GET parameters

  - Removed dead code in several places
 - Legacy-Id: 5830
2013-07-15 20:55:24 +00:00
Henrik Levkowetz be7e968da6 Applied fix from https://code.djangoproject.com/attachment/ticket/3615/defer_constraint_checks.diff to defer constraint checks when loading fixtures.
- Legacy-Id: 5818
2013-07-14 14:22:26 +00:00
Henrik Levkowetz ec2550db84 Merged [5613] from mcr@sandelman.ca: include a way to dump timedeltafields so that it is possible to save data to fixtures.
- Legacy-Id: 5785
Note: SVN reference [5613] has been migrated to Git commit 32cb1d83e78d890cc286fb47131489a74dda4b21
2013-06-10 20:33:07 +00:00
Henrik Levkowetz 3597d436ac Small patch from olau@iola.dk to avoid constant 500 traceback when someone tries to push an invalid cookie.
- Legacy-Id: 4553
2012-06-29 00:33:54 +00:00
Henrik Levkowetz 6eb2e7c78f Avoid complications from trying to save user login time when running with readonly access to the database.
- Legacy-Id: 4160
2012-03-22 13:40:38 +00:00
Henrik Levkowetz 56b8f3e738 Update forms and helptexts associated with user.username admin to consistently show our tweaked length of 64 characters.
- Legacy-Id: 4156
2012-03-21 14:26:06 +00:00
Ole Laursen 552e23d76a Fix spelling bug in ported mail_admins hack
- Legacy-Id: 3783
2011-12-23 12:50:51 +00:00
Ole Laursen 498dc38507 Port to Django 1.2, replacing built-in patched Django with Django 1.2.7 (with patches applied on top) and replacing South with South 0.7.3
- Legacy-Id: 3773
2011-12-15 14:13:54 +00:00
Ole Laursen 5a4c23ea92 Merge with trunk
- Legacy-Id: 3676
2011-11-21 16:41:21 +00:00
Henrik Levkowetz 8c3b7def5b Change the length of the username field from 30 to 64 characters.
- Legacy-Id: 3444
2011-10-12 15:42:51 +00:00
Ole Laursen c2dd48ff35 Fix a bug in admin that messes up column headers if
TEMPLATE_STRING_IF_INVALID is turned on (see
https://code.djangoproject.com/ticket/12136 and
http://groups.google.com/group/django-developers/browse_thread/thread/a93f09c46f15d20d)
 - Legacy-Id: 3382
2011-08-26 16:54:01 +00:00
Henrik Levkowetz 4c7d5d41b3 Remove debug print statement
- Legacy-Id: 3333
2011-08-18 21:42:21 +00:00
Henrik Levkowetz 7a2859db46 Make django pick up app- and module-specific admin email addresses for stack trace messages.
- Legacy-Id: 3204
2011-07-23 12:48:08 +00:00
Henrik Levkowetz aeff74a467 Make admin form lists work a bit better with non-ascii content in non-unicode tables.
- Legacy-Id: 3203
2011-07-23 12:23:10 +00:00
Henrik Levkowetz 62c16cba07 Applied a patch to django's test client, found by olau@: http://code.djangoproject.com/changeset/12343. Fixes issue #359.
- Legacy-Id: 2495
2010-08-19 16:20:09 +00:00
Henrik Levkowetz fa45244ef2 Apply patch from django ticket #101863, to provide more debugging information in production error notification emails.
- Legacy-Id: 2469
2010-08-12 13:06:42 +00:00
Henrik Levkowetz 266b7820d0 Merged from log:branch/2.00@2363: Current release branch head to trunk.
- Legacy-Id: 2365
2010-07-21 12:48:05 +00:00