Skip to content

Conversation

@TimOsahenru
Copy link
Contributor

@TimOsahenru TimOsahenru commented Oct 26, 2022

Closes #1419

Registered all unregistered models in the admin.py file located inside the account module

Comment on lines 4 to 13
from threads.models import (
Activity,
Civi,
CiviImage,
Fact,
Rationale,
Rebuttal,
Response,
Thread,
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Register threads models from within the threads app in the file threads/admin.py.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well noted @brylie. Should I go ahead to also register the Category and Notification model from their respective admin?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each model is registered in its respective admin.py, found within the same application directory.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh @brylie I don't think that was the case, only the account module had an admin file that's why I initially registered all models there. However, I have created an admin file for thread, categories and notification modules, can I go ahead to push for a Pull Request?

Copy link
Contributor

@brylie brylie Oct 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can commit those changes in your register-models branch related to this pull request.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @brylie please I have successfully committed my changes.

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit dd6a705 and detected 0 issues on this pull request.

View more on Code Climate.

@brylie
Copy link
Contributor

brylie commented Oct 26, 2022

When creating a pull request that will resolve an issue, please link the pull request to the related issue(s) by using one of the supported keywords followed by the issue number in the pull request description.

For example:

Closes #<issue-number>

Further details

You can link a pull request to an issue by using a supported keyword in the pull request's description or in a commit message.

  • close
  • closes
  • closed
  • fix
  • fixes
  • fixed
  • resolve
  • resolves
  • resolved

@TimOsahenru TimOsahenru reopened this Oct 26, 2022
@TimOsahenru TimOsahenru changed the title Registered unregistered models Closes #1454 Registered unregistered models Oct 26, 2022
@TimOsahenru TimOsahenru changed the title Closes #1454 Registered unregistered models Registered unregistered models Oct 26, 2022
@TimOsahenru TimOsahenru changed the title Registered unregistered models Closes #1419 Registered unregistered models Oct 27, 2022
@TimOsahenru
Copy link
Contributor Author

Hello @brylie thank you for the resources I hope I did it right, I have modified my PR

@brylie brylie merged commit b0e1c1c into CiviWiki:develop Oct 27, 2022
@brylie
Copy link
Contributor

brylie commented Oct 27, 2022

@all-contributors please add @TimOsahenru for code

@allcontributors
Copy link
Contributor

@brylie

I've put up a pull request to add @TimOsahenru! 🎉

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.

Register admin for remaining models

2 participants