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

opal scaffold mir does not create labels based on verbose_name of DateTimeField #1147

Open
divinenephron opened this issue May 27, 2017 · 0 comments

Comments

@divinenephron
Copy link

Given

models.py contains the following

class IncidentTimeline(models.PatientSubrecord):
    _is_singleton = True

    incident_occurs = fields.DateTimeField(
        null=True,
        blank=True,
        verbose_name="Time incident occurred"
    )

After running opal scaffold mir the file templates/forms/incident_timeline_form.html contains the following

{% load forms %}
{% datetimepicker  field="IncidentTimeline.incident_occurs"  %}

Actual result

The verbose_name is not used as a label.

Expected result

There is a label next to the date time picker which contains the text of the verbose_name keyword argument to fields.DateTimeField.

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

No branches or pull requests

1 participant