redex-ai / simple-django-login-and-register

An example of Django project with basic user functionality.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

REDEX #1

Open redex-ai opened 12 months ago

redex-ai commented 12 months ago

In the Create Account Page, add another field for phone number. The allowed size for phone number is 10

redex-ai-powered-okr-tool[bot] commented 12 months ago

Change Summary

Implementing user activity logging feature by adding a new model, updating views, creating a migration, registering the model in admin, and adding a new template with corresponding URL.

FilePlan :-

File : source/accounts/models.py

Add a new model 'UserActivity' with fields for user, action, and timestamp.

File : source/accounts/views.py

Update views to log user actions using the 'UserActivity' model.

File : source/accounts/migrations/0002_add_useractivity_model.py

Create a new migration file for the 'UserActivity' model.

File : source/accounts/admin.py

Register the 'UserActivity' model to enable it in the Django admin.

File : source/accounts/templates/accounts/user_activity.html

Create a new template to display user activity logs.

File : source/accounts/urls.py

Add a new URL pattern for the user activity log page.

Please review the structure and let me know if any modifications are required.