Skip to content

Commit

Permalink
Corrected EnumField reference in readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreif committed Feb 8, 2013
1 parent 41c2873 commit d971e9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -31,7 +31,7 @@ Create an Enum-class and pass it as first argument to the Django model EnumField
WEISSBIER = 2
class Beer(models.Model):
style = EnumField(BeerStyle, default=BeerStyle.LAGER)
style = enum.EnumField(BeerStyle, default=BeerStyle.LAGER)
.. code:: python
Expand All @@ -56,7 +56,7 @@ The Enum-class provides the possibility to use transition validation.
}
class Person(models.Model):
status = EnumField(PersonStatus)
status = enum.EnumField(PersonStatus)
These transitions state that a PersonStatus can only go to DEAD from ALIVE and to REANIMATED from DEAD.

Expand Down

0 comments on commit d971e9b

Please sign in to comment.