Permalink
Browse files

Corrected EnumField reference in readme.

  • Loading branch information...
1 parent 41c2873 commit d971e9bca81bab9c62ca0238cd1866b9e32c7fd0 @andreif andreif committed Feb 8, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.rst
View
@@ -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
@@ -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.

0 comments on commit d971e9b

Please sign in to comment.