-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[change] User Model Extension (Bulk Update) #310
Comments
I think we should add an additional method there which by default is empty but can be used by third party apps to add their own logic. Eg: ...
user = self.customize_user_creation(user, row)
user.full_clean()
def customize_user_creation(user, row):
return user Third parties should be able to extend We should create a test for this use case in the SAMPLE_APP: https://github.com/openwisp/openwisp-radius/tree/master/tests/openwisp2/sample_radius |
Hi can i work on this? Since i am new can you please explain the issue and its solution in simple terms? |
You can start working @eleensmathew |
If you are new, please try to explore openwisp-radius first. |
Should I add this code (#310 (comment)) in the https://github.com/openwisp/openwisp-radius/blob/master/tests/openwisp2/sample_radius/models.py file? |
Extending User Models in openwisp-radius
I have followed the documentation(https://github.com/openwisp/openwisp-users/#extend-openwisp-users) to extended the User models. But when we extend the User models here
Are these fields will add in Bulk User creation ( through csv we are doing according to https://openwisp-radius.readthedocs.io/en/latest/user/importing_users.html)
But when i have in the code itself , only considering the below fields to create or update the user according to
openwisp-radius/openwisp_radius/base/models.py
Line 942 in e6b931a
This was seen in multiple places , fixing the fields in the Bulk User creation
Do we need to make changes in the core code or is there any other way to extend them
I think code needs to be improved
The text was updated successfully, but these errors were encountered: