Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated a code block to use the emphasize-lines Sphinx option

  • Loading branch information...
commit 15ed75d6329fae75bb0b1ec734718fbae72f7ff7 1 parent f671fb9
Tim Graham timgraham authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 docs/howto/legacy-databases.txt
5 docs/howto/legacy-databases.txt
View
@@ -57,13 +57,14 @@ Python declaration of each one of these models to specify it is a
:attr:`managed <django.db.models.Options.managed>` one. For example, consider
this generated model definition:
-.. parsed-literal::
+.. code-block:: python
+ :emphasize-lines: 5
class Person(models.Model):
id = models.IntegerField(primary_key=True)
first_name = models.CharField(max_length=70)
class Meta:
- **managed = False**
+ managed = False
db_table = 'CENSUS_PERSONS'
If you wanted to modify existing data on your ``CENSUS_PERSONS`` SQL table

1 comment on commit 15ed75d

Marc Tamlyn
Collaborator

There's a spot in tutorial 1 which would potential benefit from this

Please sign in to comment.
Something went wrong with that request. Please try again.