Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After evaluating our needs for implementing a referral system in our application, decided not to use the django-referral library. The primary reasons are its lack of support for Django 2.0 and several errors that hindered integration.
What We Did:
Model Update: We have updated the InviteFriend model to include additional fields such as sender, recipients, referral_code. These enhancements are aimed at tracking invitations more efficiently and enabling the application to monitor the sign-up status of invited users.
Security Measures: To safeguard our system against potential spam and abuse, we've implemented several security-related validations. These measures ensure that our invitation system remains secure and is used as intended, promoting a healthy and spam-free environment.
Invitation Page Update: Minor improvements were made to the invitation page, enhancing its usability and visual appeal.
Reward System Adjustments: We've refined our reward system. Previously, users could earn rewards for merely sending out invitations. Now, rewards are granted only when the invited users complete the signup process successfully. This change aims to encourage genuine invitations and active participation within our community.
Conclusion:
These updates bring our referral system in line with modern standards, ensuring it's both secure and user-friendly. By making these changes, we're not only improving the user experience but also reinforcing the integrity of our platform.
This PR fix issue #1210 #581 .
@DonnieBLT sir, could you please review this PR and share your feedback? Thank you very much.😊