Ticket #9029: 9029-get_or_create-r9014.diff

File 9029-get_or_create-r9014.diff, 525 bytes (added by Tai Lee, 16 years ago)

failing test case

  • tests/regressiontests/get_or_create_regress/models.py

     
    3838>>> p.books.count()
    39391
    4040
     41# Use the publisher's primary key instead of a model instance.
     42>>> Book.objects.get_or_create(publisher_id=p.id, name='The Book of Ed & Fred 2')
     43<Book: Book object>, True
     44
    4145#
    4246# ManyRelatedManager
    4347#
Back to Top