Changes between Initial Version and Version 1 of Ticket #21381, comment 2


Ignore:
Timestamp:
Mar 21, 2018, 7:24:44 AM (7 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21381, comment 2

    initial v1  
    11Here's a pull request: https://github.com/django/django/pull/1885
    22
    3 Unfortunately, it's hard to add tests. The `django_redirect` table is initially created with a ``site_id`` column, which doesn't allow testing the feature this patch is adding.
     3Unfortunately, it's hard to add tests. The `django_redirect` table is initially created with a `site_id` column, which doesn't allow testing the feature this patch is adding.
    44
    55The least awful idea I have is to disable sites, monkey-patch `Site._meta.db_table`, call syncdb to create the new table, and test with that.
Back to Top