OperationalError no such column: app_patient.sex

Raised by:

django/db/backends/sqlite3/base.py (line 328)

Traceback (most recent call last):
  File "python3.5/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "private.py", line 1, in private_function
    private_function()
  File "python3.5/site-packages/django/shortcuts.py", line 30, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "python3.5/site-packages/django/template/loader.py", line 68, in render_to_string
    return template.render(context, request)
  File "python3.5/site-packages/django/template/backends/django.py", line 66, in render
    return self.template.render(context)
  File "python3.5/site-packages/django/template/base.py", line 207, in render
    return self._render(context)
  File "python3.5/site-packages/django/template/base.py", line 199, in _render
    return self.nodelist.render(context)
  File "python3.5/site-packages/django/template/base.py", line 990, in render
    bit = node.render_annotated(context)
  File "python3.5/site-packages/django/template/base.py", line 957, in render_annotated
    return self.render(context)
  File "python3.5/site-packages/django/template/loader_tags.py", line 177, in render
    return compiled_parent._render(context)
  File "python3.5/site-packages/django/template/base.py", line 199, in _render
    return self.nodelist.render(context)
  File "python3.5/site-packages/django/template/base.py", line 990, in render
    bit = node.render_annotated(context)
  File "python3.5/site-packages/django/template/base.py", line 957, in render_annotated
    return self.render(context)
  File "python3.5/site-packages/django/template/loader_tags.py", line 177, in render
    return compiled_parent._render(context)
  File "python3.5/site-packages/django/template/base.py", line 199, in _render
    return self.nodelist.render(context)
  File "python3.5/site-packages/django/template/base.py", line 990, in render
    bit = node.render_annotated(context)
  File "python3.5/site-packages/django/template/base.py", line 957, in render_annotated
    return self.render(context)
  File "python3.5/site-packages/django/template/loader_tags.py", line 72, in render
    result = block.nodelist.render(context)
  File "python3.5/site-packages/django/template/base.py", line 990, in render
    bit = node.render_annotated(context)
  File "python3.5/site-packages/django/template/base.py", line 957, in render_annotated
    return self.render(context)
  File "python3.5/site-packages/django/template/defaulttags.py", line 322, in render
    return nodelist.render(context)
  File "python3.5/site-packages/django/template/base.py", line 990, in render
    bit = node.render_annotated(context)
  File "python3.5/site-packages/django/template/base.py", line 957, in render_annotated
    return self.render(context)
  File "python3.5/site-packages/django/template/defaulttags.py", line 173, in render
    len_values = len(values)
  File "python3.5/site-packages/django/db/models/query.py", line 232, in __len__
    self._fetch_all()
  File "python3.5/site-packages/django/db/models/query.py", line 1118, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "python3.5/site-packages/django/db/models/query.py", line 53, in __iter__
    results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)
  File "python3.5/site-packages/django/db/models/sql/compiler.py", line 899, in execute_sql
    raise original_exception
  File "python3.5/site-packages/django/db/models/sql/compiler.py", line 889, in execute_sql
    cursor.execute(sql, params)
  File "python3.5/site-packages/django/db/backends/utils.py", line 79, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File "python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
  File "python3.5/site-packages/django/db/utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "python3.5/site-packages/django/utils/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
  File "python3.5/site-packages/django/db/backends/sqlite3/base.py", line 328, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such column: app_patient.sex