Skip to content
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

Accounts templates django syntax #1428

Merged
merged 64 commits into from
Oct 21, 2022
Merged

Conversation

brylie
Copy link
Member

@brylie brylie commented Oct 11, 2022

This pull request takes a step back, feature-wise, so we can take some steps forward. The JavaScript code is a significant blocker, so this pull request removes the blocking code/complexity.

My goal is to remove the accounts.js Backbone JS while preserving templates and view code. That way, we can re-implement the features as a community, possibly during Hacktoberfest 🎃

Closes #1151

The work can now continue to reimplement the profile sections.

Changes

  • remove mypy pre-commit due to repeated "missing dependency" failures
  • port accounts templates over to Django
  • port essential accounts code to Django views/model attributes
  • add missing reverse_name properties on foreign keys
  • reimplement follow/unfollow
  • remove all API views, URLs, and tests

Continuing work

The work to improve the user profile and feed views will continue in the following epic #1429

@gorkemarslan

This comment was marked as resolved.

@brylie

This comment was marked as resolved.

@brylie brylie marked this pull request as ready for review October 18, 2022 19:22
@brylie brylie force-pushed the accounts-templates-django-syntax branch from d8b4ff7 to 77c5df9 Compare October 19, 2022 15:56
@gorkemarslan
Copy link
Collaborator

First of all, you did a great job here. That is really a huge effort. 😄

project/accounts/models.py Outdated Show resolved Hide resolved
project/accounts/views.py Show resolved Hide resolved
project/accounts/permissions.py Outdated Show resolved Hide resolved
project/accounts/views.py Outdated Show resolved Hide resolved
project/accounts/models.py Show resolved Hide resolved
project/accounts/views.py Show resolved Hide resolved
@gorkemarslan
Copy link
Collaborator

Nicely done, @brylie! Just one comment then I will approve it. 🥳

@brylie brylie merged commit 1d04932 into develop Oct 21, 2022
@brylie brylie deleted the accounts-templates-django-syntax branch October 21, 2022 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port accounts app templates to Django template syntax
2 participants