-
Notifications
You must be signed in to change notification settings - Fork 431
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
Conversation
Migrations fail because the |
rebase and try to fix the errors |
@auvipy ok this is cleaned up now |
"""Table information.""" | ||
|
||
verbose_name = _('solar') | ||
verbose_name_plural = _('solars') |
There was a problem hiding this comment.
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'?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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?
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 fromcelery.schedules.solar
, so the model doesn't have any constants. Is it safe to redefine them here?