Commits

Kai Diefenbach committed 7f4a1e1 Merge

Merged.

Comments (0)

Files changed (3)

+4ebe7ebec39720ff20c732210b672ce4f3460c6d 1.0b1

lfs_order_numbers/forms.py

-# django imports
-from django import forms
-
-# lfs_order_numbers imports
-from lfs_order_numbers.models import OrderNumberGenerator
-
-
-class OrderNumberGeneratorForm(forms.ModelForm):
-    """Form to edit order number generator.
-    """
-    class Meta:
-        model = OrderNumberGenerator
-        exclude = ("id", )

lfs_order_numbers/models.py

 # django imports
+from django import forms
+from django.db import models
 from django.utils.translation import ugettext_lazy as _
-from django.db import models
 
 # lfs imports
 from lfs.plugins import OrderNumberGenerator as Base
 
 
 class OrderNumberGenerator(Base):
-    """Generates order numbers and saves the last one.
+    """
+    Generates order numbers and saves the last one.
 
     **Attributes:**