Ticket #1627: typos-magic-removal.diff

File typos-magic-removal.diff, 3.9 KB (added by dexter@…, 19 years ago)
  • django/db/models/fields/__init__.py

     
    4141
    4242# A guide to Field parameters:
    4343#
    44 #   * name:      The name of the field specifed in the model.
     44#   * name:      The name of the field specified in the model.
    4545#   * attname:   The attribute to use on the model object. This is the same as
    4646#                "name", except in the case of ForeignKeys, where "_id" is
    4747#                appended.
  • django/core/management.py

     
    119119    # but don't exist physically
    120120    not_installed_models = set(pending_references.keys())
    121121    if not_installed_models:
    122         final_output.append('-- The following references should be added but depend on non-existant tables:')
     122        final_output.append('-- The following references should be added but depend on non-existent tables:')
    123123        for klass in not_installed_models:
    124124            final_output.extend(['-- ' + sql for sql in
    125125                _get_sql_for_pending_references(klass, pending_references)])
     
    247247    from django.db import backend, connection, models, get_introspection_module
    248248    introspection = get_introspection_module()
    249249
    250     # This should work even if a connecton isn't available
     250    # This should work even if a connection isn't available
    251251    try:
    252252        cursor = connection.cursor()
    253253    except:
  • tests/modeltests/transactions/models.py

     
    3636[Alice Smith]
    3737
    3838# the autocommit decorator works exactly the same as the default behavior
    39 >>> autocomitted_create_then_fail = transaction.autocommit(create_a_reporter_then_fail)
    40 >>> autocomitted_create_then_fail("Ben", "Jones")
     39>>> autocommitted_create_then_fail = transaction.autocommit(create_a_reporter_then_fail)
     40>>> autocommitted_create_then_fail("Ben", "Jones")
    4141Traceback (most recent call last):
    4242    ...
    4343Exception: I meant to do that
     
    4646>>> Reporter.objects.all()
    4747[Alice Smith, Ben Jones]
    4848
    49 # With the commit_on_success decorator, the transaction is only comitted if the
     49# With the commit_on_success decorator, the transaction is only committed if the
    5050# function doesn't throw an exception
    5151>>> committed_on_success = transaction.commit_on_success(create_a_reporter_then_fail)
    5252>>> committed_on_success("Carol", "Doe")
     
    6363...     r = Reporter.objects.get(first_name="Alice")
    6464...     r.delete()
    6565...
    66 >>> remove_comitted_on_success = transaction.commit_on_success(remove_a_reporter)
    67 >>> remove_comitted_on_success()
     66>>> remove_committed_on_success = transaction.commit_on_success(remove_a_reporter)
     67>>> remove_committed_on_success()
    6868>>> Reporter.objects.all()
    6969[Ben Jones]
    7070
     
    8989Traceback (most recent call last):
    9090    ...
    9191TransactionManagementError: Transaction managed block ended with pending COMMIT/ROLLBACK
    92 """
    93  No newline at end of file
     92"""
  • tests/othertests/templates.py

     
    149149    'basic-syntax33': (r'1{{ var.method3 }}2', {"var": SomeClass()}, "12"),
    150150
    151151    # In methods that raise an exception without a "silent_variable_attribute" set to True,
    152     # the exception propogates
     152    # the exception propagates
    153153    'basic-syntax34': (r'1{{ var.method4 }}2', {"var": SomeClass()}, SomeOtherException),
    154154
    155155    ### COMMENT TAG ###########################################################
Back to Top