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

__unicode__ added to BBCodeContent class #1

Merged
merged 2 commits into from
Jul 26, 2014

Conversation

slasyz
Copy link
Contributor

@slasyz slasyz commented Jul 25, 2014

Hello!

When I tried to create a model with BBCodeTextField and edit it through admin app I got this problem. Adding unicode function solves it.

3

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 9f69a6b on slasyz:develop into f6fae1d on ellmetha:develop.

@ellmetha
Copy link
Owner

Hey, thanks for this pull request!
After casting a glance, I think that you should use the python_2_unicode_compatible Django tool with the __str__ magic method instead of using __unicode__. This will be more "Python3-friendly".

Could you make this change before merging ?

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) when pulling 8f90c51 on slasyz:develop into f6fae1d on ellmetha:develop.

@slasyz
Copy link
Contributor Author

slasyz commented Jul 26, 2014

I did what you said (replaced unicode with str and added python_2_unicode_compatible decorator).

I am kind of new to all this contributing and pull requests stuff. Did I understand correctly that after necessary changes I should just add another commit, push it to github and that's all?

ellmetha added a commit that referenced this pull request Jul 26, 2014
__unicode__ added to BBCodeContent class
@ellmetha ellmetha merged commit f0ea076 into ellmetha:develop Jul 26, 2014
@ellmetha
Copy link
Owner

Yep. I can see your commit. Thanks for your contribution!

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.

None yet

3 participants