Ticket #15294: 15294-fix-comments-reverse.diff

File 15294-fix-comments-reverse.diff, 1.0 KB (added by Florian Apolloner, 13 years ago)

fixes ramiros comment bugs, just to illustrate the issue -- nicer solution anyone?

  • tests/regressiontests/admin_views/models.py

    diff --git a/tests/regressiontests/admin_views/models.py b/tests/regressiontests/admin_views/models.py
    index 8dc61e3..9f6fb0b 100644
    a b admin.site.register(Question)  
    896896admin.site.register(Answer)
    897897admin.site.register(PrePopulatedPost, PrePopulatedPostAdmin)
    898898admin.site.register(ComplexSortedPerson, ComplexSortedPersonAdmin)
     899# Since contrib.comments is in INSTALLED_APPS we need it's admin too
     900from django.contrib.comments import admin
  • tests/urls.py

    diff --git a/tests/urls.py b/tests/urls.py
    index dda0b2e..7a5d76f 100644
    a b  
    11from django.conf.urls.defaults import *
    22
     3# Fix problems with cached urlconfs and reverse:
     4from regressiontests.admin_views import customadmin, models
     5from regressiontests.generic_inline_admin import models
     6
    37urlpatterns = patterns('',
    48    # test_client modeltest urls
    59    (r'^test_client/', include('modeltests.test_client.urls')),
Back to Top