Browse files

updated docs for order number generator

  • Loading branch information...
1 parent bcc4126 commit 1e3334f1ba4d042510add11fbe837ad2521fe02d @pigletto pigletto committed with Jan 2, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 docs/developer/howtos/how_to_add_own_order_numbers/index.rst
View
6 docs/developer/howtos/how_to_add_own_order_numbers/index.rst
@@ -41,7 +41,7 @@ class and add a method to it called ``get_next``:
from lfs.plugins import OrderNumberGenerator as Base
class OrderNumberGenerator(Base):
- def get_next(formatted):
+ def get_next(self, formatted=True):
return "DOE-4711"
The ``get_next`` method is called when the shop customer submits a new order. It
@@ -59,10 +59,6 @@ Now as the code is ready, you can easily plugin your payment method:
LFS_ORDER_NUMBER_GENERATOR = "my_order_numbers.models.OrderNumberGenerator"
-#. Add the form to ``settings.py``
-
- LFS_ORDER_NUMBER_GENERATOR_FORM = "my_order_numbers.forms.OrderNumberGeneratorForm"
-
#. Add your application to settings.INSTALLED_APPS and sync the database.
And that's it

0 comments on commit 1e3334f

Please sign in to comment.