Remove drf-addons dependency.
- 主要語言
- Python
- 星號
- 158
- 分支
- 69
- PR 合併指標
- 30 天內沒有已合併 PR
描述
### Describe the feature you'd like
We need to remove [drf-addons](https://github.com/101Loop/drf-addons) dependency from this project as we're only using it's minor features only.
We will rewrite these 2 methods:
- get_client_ip
- send_message
And we'll remove usage of `JsonResponse`. Use DRF's `Response` or something.
Please write tests. 🙏🏼
### Is your feature request related to a problem?
### Your Environment
- `drf-user` version(s) (`drf-user --version`:
- Operating System(s):
- Python version(s):
### Additional context
貢獻指南
研究方向
Find where drf-addons is imported and used, likely in views or utils. Locate the get_client_ip and send_message methods and the JsonResponse usage. Write replacements using Django REST Framework's Response and standard Python libraries for IP detection and messaging. Ensure tests cover the new implementations and remove the dependency from requirements.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- django, python
- 領域
- api, backend
- Issue 類型
- 重構
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 55/100