Ticket #15544: patch15544.diff

File patch15544.diff, 499 bytes (added by Łukasz Rekucki, 14 years ago)
  • tests/regressiontests/generic_views/views.py

    diff --git a/tests/regressiontests/generic_views/views.py b/tests/regressiontests/generic_views/views.py
    index 9d2770c..1452cef 100644
    a b class OneAuthorUpdate(generic.UpdateView):  
    118118    success_url = '/list/authors/'
    119119
    120120    def get_object(self):
    121         return Author.objects.get(pk=1)
     121        return Author.objects.get()
    122122
    123123
    124124class SpecializedAuthorUpdate(generic.UpdateView):
Back to Top