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

fix: django import error #162

Merged
merged 6 commits into from
Sep 14, 2023

Conversation

src-r-r
Copy link
Contributor

@src-r-r src-r-r commented Jun 21, 2023

Description

Just a simple PR to fix the import error. Line 5-9 are the "real" changes.

All the other changes you see are just the linter cleaning up the code.

Related resources

Checklist

  • I have opened this pull request against master
  • I have added or modified the tests when changing logic
  • I have followed the conventional commits guidelines to add meaningful information into the changelog
  • I have read the contribution guidelines and I have joined #workgroup-pr-review on
    Slack to find a “pr review buddy” who is going to review my pull request.

@codecov
Copy link

codecov bot commented Jun 21, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (1726033) 98.94% compared to head (f78a1e3) 98.94%.

❗ Current head f78a1e3 differs from pull request most recent head ff85640. Consider uploading reports for the commit ff85640 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #162   +/-   ##
=======================================
  Coverage   98.94%   98.94%           
=======================================
  Files          71       71           
  Lines        1228     1228           
  Branches       70       70           
=======================================
  Hits         1215     1215           
  Misses          8        8           
  Partials        5        5           
Files Changed Coverage Δ
...gocms_bootstrap4/contrib/bootstrap4_grid/models.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Sponsor Member

@fsbraun fsbraun left a comment

Choose a reason for hiding this comment

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

@src-r-r Thank you for the PR.
Can I suggest replacing ungettext by ngettext everywhere as opposed to importing as? The unicode functions are gone for good.

@marksweb marksweb changed the title fix recent django import error. fix: django import error Jun 21, 2023
@src-r-r
Copy link
Contributor Author

src-r-r commented Jul 21, 2023

Yikes, sorry about that, been stressing out about finding sustainable work so haven't gotten to it. It's super-quiet today so I'll work on it (BTW, if you happen to know of anyone who needs a team lead, feel free to reach out).

Copy link
Sponsor Member

@fsbraun fsbraun left a comment

Choose a reason for hiding this comment

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

Thank you for the update!

I guess the ngettext as ngettext is probably unnecessary.

Also, you'll have to remove mptt from the test settings, since mptt is gone from django-filer. (See here:

)

djangocms_bootstrap4/contrib/bootstrap4_grid/models.py Outdated Show resolved Hide resolved
@fsbraun fsbraun merged commit b17bad6 into django-cms:master Sep 14, 2023
19 checks passed
@brenosss
Copy link

brenosss commented Mar 1, 2024

HI, it looks like this change is required to use Django 4.2. Is there a plan to release those changes?

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.

3 participants