> user=User.objects.create_user(
> username=form.cleaned_data['username'],
> password=form.cleaned_data['password1'],
> email=form.cleaned_data['email'],
> is_staff=form.cleaned_data['is_staff'],
> )
Maybe try instead:
user=User.objects.create_superuser(
username=form.cleaned_data['username'],
password=form.cleaned_data['password1'],
email=form.cleaned_data['email'],
)
Kenny
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/4HkVMVqNkJwJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>