Comments (3)
You can get current backend instance with registration.backends.get_backend()
function.
If you don't specify the argument (path
) of the function, the function will return backend instance which was specified in settings module.
And you can find the documentation for the default backend class at
So you can create your original view which accept, reject, activate user profiles.
If you need some permission systems, checkout djang-permission or django-gardian.
I'm sure that you need these kind of permission system if you are going to create your own management views.
from django-inspectional-registration.
Thanks. I tried the above with the following code but I'm getting a Not implemented Error.
reg_id = request.POST.get('reg_id', None)
rp = get_object_or_404(RegistrationProfile, id=reg_id)
get_backend()
rbackend = RegistrationBackendBase()
rbackend.accept(rp, request,send_email=True, message=None)
from django-inspectional-registration.
Try.
rbackend = get_backend()
rbackend.accept(rp, request, send_email=True, message=None)
from django-inspectional-registration.
Related Issues (20)
- Django 1.8: django.contrib.admin.util is deprecated HOT 3
- Form validation HOT 4
- django-inspectional-registration and custom_user HOT 5
- Signals HOT 8
- Inject values from supplement form in the User model HOT 1
- Raise `AppRegistryNotReady` on Django1.9 HOT 2
- ImportError: cannot import name RequestSite HOT 3
- Cannot load RegistrationSupplementBase on 0.6.0 HOT 2
- Inspector notification e-mail not working HOT 2
- RFC: Improve doc HOT 3
- django.conf.urls.patterns() is depreceated, update to list/tuple? HOT 2
- Additional migration created if using registration supplement HOT 3
- Can not override __str__ in RegistrationSupplementBase HOT 6
- Admin interface error when clicking on a user
- Use email other than settings.DEFAULT_FROM_EMAIL
- custom login view HOT 4
- Error on admin page to approve registration HOT 1
- Leaking of password reset token through the reset url HOT 1
- Override RegistrationProfile Admin HOT 4
- Django 2.0 Compatibility HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-inspectional-registration.