"""Models for the days app."""
from django.db import models


class Event(models.Model):
    """Representation of a notable historical event."""
    date = models.DateField(
        help_text='When the event occurred.'
    )

    description = models.TextField(
        help_text='A description of the event.'
    )

    class Meta(object):  # pylint: disable=missing-docstring
        ordering = ['date']

    def __str__(self):
        return self.date.strftime('%Y-%-m-%-d')  # pylint: disable=no-member

"""Models for the days app."""
from django.db import models


class Event(models.Model):
    """Representation of a notable historical event."""
    # How to perform lookups on this field: https://docs.djangoproject.com/en/1.9/ref/models/querysets/#month
    date = models.DateField(
        help_text='When the event occurred.'
    )

    description = models.TextField(
        help_text='A description of the event.'
    )

    class Meta(object):  # pylint: disable=missing-docstring
        ordering = ['date']

    def __str__(self):
        return self.date.strftime('%Y-%-m-%-d')  # pylint: disable=no-member

Document info for performing lookups on date fields
Document info for performing lookups on date fields

  """Models for the days app."""
  from django.db import models
  
  
  class Event(models.Model):
      """Representation of a notable historical event."""
+     # How to perform lookups on this field: https://docs.djangoproject.com/en/1.9/ref/models/querysets/#month
      date = models.DateField(
          help_text='When the event occurred.'
      )
  
      description = models.TextField(
          help_text='A description of the event.'
      )
  
      class Meta(object):  # pylint: disable=missing-docstring
          ordering = ['date']
  
      def __str__(self):
          return self.date.strftime('%Y-%-m-%-d')  # pylint: disable=no-member
  
Document info for performing lookups on date fields
## Code Before:
"""Models for the days app."""
from django.db import models


class Event(models.Model):
    """Representation of a notable historical event."""
    date = models.DateField(
        help_text='When the event occurred.'
    )

    description = models.TextField(
        help_text='A description of the event.'
    )

    class Meta(object):  # pylint: disable=missing-docstring
        ordering = ['date']

    def __str__(self):
        return self.date.strftime('%Y-%-m-%-d')  # pylint: disable=no-member

## Instruction:
Document info for performing lookups on date fields
## Code After:
"""Models for the days app."""
from django.db import models


class Event(models.Model):
    """Representation of a notable historical event."""
    # How to perform lookups on this field: https://docs.djangoproject.com/en/1.9/ref/models/querysets/#month
    date = models.DateField(
        help_text='When the event occurred.'
    )

    description = models.TextField(
        help_text='A description of the event.'
    )

    class Meta(object):  # pylint: disable=missing-docstring
        ordering = ['date']

    def __str__(self):
        return self.date.strftime('%Y-%-m-%-d')  # pylint: disable=no-member
