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

South migration issue fix #7

Closed
wants to merge 1 commit into from
Closed

Conversation

swiftslipper
Copy link
Contributor

Issue reported by georgema1982

Had the same issue trying to migrate my profile model after adding the field.

South takes the class string representation ( by default). To get timezone string, I appended .zone, as demonstrated in pytz examples (http://pytz.sourceforge.net/#localized-times-and-date-arithmetic)

@@ -21,5 +21,5 @@ def get_timezone():
return t

from django.conf import settings
return utils.coerce_timezone_value(settings.TIME_ZONE)
return utils.coerce_timezone_value(settings.TIME_ZONE).zone
Copy link
Contributor Author

Choose a reason for hiding this comment

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

to get string representation of the time zone's name

Issue reported by georgema1982
@paluh
Copy link
Owner

paluh commented Dec 17, 2011

Hi,

I don't think we should change return type of global_tz.get_timezone because of south. I've added converter to south rule so it should work now: 8e8ff60

Anyway - thanks for participating.

Regards,
paluh

@paluh paluh closed this Dec 17, 2011
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

2 participants