From d971e9bca81bab9c62ca0238cd1866b9e32c7fd0 Mon Sep 17 00:00:00 2001 From: Andrei Fokau Date: Fri, 8 Feb 2013 21:11:56 +0100 Subject: [PATCH] Corrected EnumField reference in readme. --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 31dfb55..8ea727c 100644 --- a/README.rst +++ b/README.rst @@ -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.