Git Product home page Git Product logo

Comments (3)

lambdalisue avatar lambdalisue commented on August 17, 2024

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.

https://django-inspectional-registration.readthedocs.org/en/latest/registration.backends.html#registration.backends.get_backend

And you can find the documentation for the default backend class at

https://django-inspectional-registration.readthedocs.org/en/latest/registration.backends.default.html#registration.backends.default.DefaultRegistrationBackend

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.

andrewfam avatar andrewfam commented on August 17, 2024

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.

lambdalisue avatar lambdalisue commented on August 17, 2024

Try.

rbackend = get_backend()
rbackend.accept(rp, request, send_email=True, message=None)

from django-inspectional-registration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.