|
@@ -1,5 +1,6 @@
|
|
|
from django import forms
|
|
|
-from SharixAdmin.models import SharixUser
|
|
|
+from django.contrib.auth import get_user_model
|
|
|
+
|
|
|
from webservice_running.models import OrdersLocal
|
|
|
from django.contrib.auth.forms import UserCreationForm
|
|
|
|
|
@@ -25,5 +26,5 @@ class RegisterUserForm(UserCreationForm):
|
|
|
widget=forms.TextInput(attrs={'class':'form-control'}))
|
|
|
|
|
|
class Meta:
|
|
|
- model = SharixUser
|
|
|
+ model = get_user_model()
|
|
|
fields = ['username', 'password1', 'password2']
|