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

Add solar schedules #9

Merged
merged 8 commits into from
Dec 9, 2016
Merged

Add solar schedules #9

merged 8 commits into from
Dec 9, 2016

Conversation

mheppner
Copy link
Contributor

@mheppner mheppner commented Nov 18, 2016

This is in response for #8. I'm not sure what you want the names to be ("solars" for verbose_name_plural seems odd, for example). It uses the event names directly from celery.schedules.solar, so the model doesn't have any constants. Is it safe to redefine them here?

@mheppner
Copy link
Contributor Author

Migrations fail because the label set in django_celery_beat.apps.BeatConfig should be django_celery_beat, not beat.

@auvipy
Copy link
Member

auvipy commented Dec 7, 2016

rebase and try to fix the errors

@mheppner
Copy link
Contributor Author

mheppner commented Dec 8, 2016

@auvipy ok this is cleaned up now

"""Table information."""

verbose_name = _('solar')
verbose_name_plural = _('solars')
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe this should be 'solar event' and 'solar events'?

Copy link
Contributor

Choose a reason for hiding this comment

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

should probably also have unique_together = ('event', 'latitude' ,'longitude') here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sounds good to me, thanks ask :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry @ask, i forgot to check travis last night. the unique_together has been added.

"""Table information."""

verbose_name = _('solar')
verbose_name_plural = _('solars')
Copy link
Contributor

Choose a reason for hiding this comment

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

should probably also have unique_together = ('event', 'latitude' ,'longitude') here?

@auvipy auvipy merged commit ec46367 into celery:master Dec 9, 2016
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