-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor ProductAdmin and ProductCategory model for improved clarity
- Commented out the formfield_for_foreignkey method in ProductAdmin to simplify the code and prepare for future enhancements. - Updated the __str__ method in ProductCategory to include the associated business name, improving the representation of product categories in the admin interface. These changes enhance code maintainability and provide better context in the admin display.
- Loading branch information
1 parent
66de710
commit 29b5921
Showing
2 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters