From 6cfb5d0fc849eecc100a7cf4540c75233a698acb Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Sat, 24 May 2025 16:05:13 +0330 Subject: [PATCH] first base of project-changed apps: Herd-livestock-tag-log-elasticsearch- fix log.json path --- apps/log/middlewares.py | 6 +++++- logs/log.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/log/middlewares.py b/apps/log/middlewares.py index 55f01cc..f0617cc 100644 --- a/apps/log/middlewares.py +++ b/apps/log/middlewares.py @@ -1,8 +1,12 @@ +import os.path import time # from .models import Log from tinydb import TinyDB, Query from django.core import serializers from datetime import datetime +from pathlib import Path + +BASE_DIR = Path(__file__).resolve().parent.parent.parent class SaveLog: @@ -42,7 +46,7 @@ class SaveLog: } if request.user.is_authenticated: db_data.update({'user': serializers.serialize('json', [request.user, ])}) - db = TinyDB(f'logs/log.json') + db = TinyDB(os.path.join(BASE_DIR, "logs/log.json")) db.insert(db_data) return response diff --git a/logs/log.json b/logs/log.json index 3d0c276..559b956 100644 --- a/logs/log.json +++ b/logs/log.json @@ -1 +1 @@ -{"_default": {"1": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:54:55.040619"}, "2": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:54:59.706596"}, "3": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:56:29.544076"}, "4": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:57:05.503536"}, "5": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 500, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 545, "body_response": "\n\n\n \n \n IntegrityError\n at /livestock/web/api/v1/livestock_species/\n \n \n \n \n\n\n
\n

IntegrityError\n at /livestock/web/api/v1/livestock_species/

\n
null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n
\n \n\n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n\n \n \n \n \n\n\n \n \n \n \n\n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Request Method:POST
Request URL:http://127.0.0.1:8000/livestock/web/api/v1/livestock_species/
Django Version:5.0
Exception Type:IntegrityError
Exception Value:
null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n
Exception Location:D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute
Raised during:apps.livestock.web.api.v1.api.LiveStockViewSet
Python Executable:D:\\Software\\env\\Scripts\\python.exe
Python Version:3.12.0
Python Path:
['D:\\\\Project\\\\Rasaddam_Backend',\n 'D:\\\\Software\\\\python-3.12.0\\\\python312.zip',\n 'D:\\\\Software\\\\python-3.12.0\\\\DLLs',\n 'D:\\\\Software\\\\python-3.12.0\\\\Lib',\n 'D:\\\\Software\\\\python-3.12.0',\n 'D:\\\\Software\\\\env',\n 'D:\\\\Software\\\\env\\\\Lib\\\\site-packages',\n 'D:\\\\Software\\\\env\\\\Lib\\\\site-packages\\\\setuptools\\\\_vendor']
Server time:Sat, 24 May 2025 07:27:42 +0000
\n
\n\n\n\n\n
\n

Traceback \n Switch to copy-and-paste view\n

\n
\n
    \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute\n \n\n \n
    \n \n
      \n \n
    1.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    2. \n \n
    3.         self.db.validate_no_broken_transaction()
    4. \n \n
    5.         with self.db.wrap_database_errors:
    6. \n \n
    7.             if params is None:
    8. \n \n
    9.                 # params default might be backend specific.
    10. \n \n
    11.                 return self.cursor.execute(sql)
    12. \n \n
    13.             else:
    14. \n \n
    \n \n
      \n
    1.                 return self.cursor.execute(sql, params)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def _executemany(self, sql, param_list, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ignored_wrapper_args
    (False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n  'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>})
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n The above exception (null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL: Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n) was the direct cause of the following exception:\n \n

  • \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\core\\handlers\\exception.py, line 55, in inner\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         return inner
    3. \n \n
    4.     else:
    5. \n \n
    6. \n \n
    7.         @wraps(get_response)
    8. \n \n
    9.         def inner(request):
    10. \n \n
    11.             try:
    12. \n \n
    \n \n
      \n
    1.                 response = get_response(request)\n                               ^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             except Exception as exc:
    2. \n \n
    3.                 response = response_for_exception(request, exc)
    4. \n \n
    5.             return response
    6. \n \n
    7. \n \n
    8.         return inner
    9. \n \n
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    exc
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    get_response
    <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x000001C39D12D910>>
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock_species/'>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\core\\handlers\\base.py, line 197, in _get_response\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         if response is None:
    3. \n \n
    4.             wrapped_callback = self.make_view_atomic(callback)
    5. \n \n
    6.             # If it is an asynchronous view, run it in a subthread.
    7. \n \n
    8.             if iscoroutinefunction(wrapped_callback):
    9. \n \n
    10.                 wrapped_callback = async_to_sync(wrapped_callback)
    11. \n \n
    12.             try:
    13. \n \n
    \n \n
      \n
    1.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             except Exception as e:
    2. \n \n
    3.                 response = self.process_exception_by_middleware(e, request)
    4. \n \n
    5.                 if response is None:
    6. \n \n
    7.                     raise
    8. \n \n
    9. \n \n
    10.         # Complain if the view returned None (a common error).
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    callback
    <function LiveStockViewSet at 0x000001C39CFFAFC0>
    callback_args
    ()
    callback_kwargs
    {}
    middleware_method
    <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>>
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock_species/'>
    response
    None
    self
    <django.core.handlers.wsgi.WSGIHandler object at 0x000001C39D12D910>
    wrapped_callback
    <function LiveStockViewSet at 0x000001C39CFFAFC0>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\views\\decorators\\csrf.py, line 65, in _view_wrapper\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         async def _view_wrapper(request, *args, **kwargs):
    3. \n \n
    4.             return await view_func(request, *args, **kwargs)
    5. \n \n
    6. \n \n
    7.     else:
    8. \n \n
    9. \n \n
    10.         def _view_wrapper(request, *args, **kwargs):
    11. \n \n
    \n \n
      \n
    1.             return view_func(request, *args, **kwargs)\n                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     _view_wrapper.csrf_exempt = True
    3. \n \n
    4. \n \n
    5.     return wraps(view_func)(_view_wrapper)
    6. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    kwargs
    {}
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock_species/'>
    view_func
    <function LiveStockViewSet at 0x000001C39CFFAF20>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\viewsets.py, line 125, in view\n \n\n \n
    \n \n
      \n \n
    1.                 setattr(self, method, handler)
    2. \n \n
    3. \n \n
    4.             self.request = request
    5. \n \n
    6.             self.args = args
    7. \n \n
    8.             self.kwargs = kwargs
    9. \n \n
    10. \n \n
    11.             # And continue as usual
    12. \n \n
    \n \n
      \n
    1.             return self.dispatch(request, *args, **kwargs)\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         # take name and docstring from class
    3. \n \n
    4.         update_wrapper(view, cls, updated=())
    5. \n \n
    6. \n \n
    7.         # and possible attributes set by decorators
    8. \n \n
    9.         # like csrf_exempt from dispatch
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    action
    'list'
    actions
    {'get': 'list', 'head': 'list', 'post': 'create'}
    args
    ()
    cls
    <class 'apps.livestock.web.api.v1.api.LiveStockViewSet'>
    handler
    <bound method ListModelMixin.list of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>>
    initkwargs
    {'basename': 'livestock_species', 'detail': False, 'suffix': 'List'}
    kwargs
    {}
    method
    'head'
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock_species/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 515, in dispatch\n \n\n \n
    \n \n
      \n \n
    1.                                   self.http_method_not_allowed)
    2. \n \n
    3.             else:
    4. \n \n
    5.                 handler = self.http_method_not_allowed
    6. \n \n
    7. \n \n
    8.             response = handler(request, *args, **kwargs)
    9. \n \n
    10. \n \n
    11.         except Exception as exc:
    12. \n \n
    \n \n
      \n
    1.             response = self.handle_exception(exc)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         self.response = self.finalize_response(request, response, *args, **kwargs)
    3. \n \n
    4.         return self.response
    5. \n \n
    6. \n \n
    7.     def options(self, request, *args, **kwargs):
    8. \n \n
    9.         """
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    handler
    <bound method CreateModelMixin.create of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>>
    kwargs
    {}
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 475, in handle_exception\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         exception_handler = self.get_exception_handler()
    3. \n \n
    4. \n \n
    5.         context = self.get_exception_handler_context()
    6. \n \n
    7.         response = exception_handler(exc, context)
    8. \n \n
    9. \n \n
    10.         if response is None:
    11. \n \n
    \n \n
      \n
    1.             self.raise_uncaught_exception(exc)\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         response.exception = True
    3. \n \n
    4.         return response
    5. \n \n
    6. \n \n
    7.     def raise_uncaught_exception(self, exc):
    8. \n \n
    9.         if settings.DEBUG:
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    context
    {'args': (),\n 'kwargs': {},\n 'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>,\n 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>}
    exc
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    exception_handler
    <function exception_handler at 0x000001C39CCADE40>
    response
    None
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 486, in raise_uncaught_exception\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.     def raise_uncaught_exception(self, exc):
    3. \n \n
    4.         if settings.DEBUG:
    5. \n \n
    6.             request = self.request
    7. \n \n
    8.             renderer_format = getattr(request.accepted_renderer, 'format')
    9. \n \n
    10.             use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')
    11. \n \n
    12.             request.force_plaintext_errors(use_plaintext_traceback)
    13. \n \n
    \n \n
      \n
    1.         raise exc\n             ^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     # Note: Views are made CSRF exempt from within `as_view` as to prevent
    3. \n \n
    4.     # accidental removal of this exemption in cases where `dispatch` needs to
    5. \n \n
    6.     # be overridden.
    7. \n \n
    8.     def dispatch(self, request, *args, **kwargs):
    9. \n \n
    10.         """
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    exc
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    renderer_format
    'json'
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    use_plaintext_traceback
    True
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 512, in dispatch\n \n\n \n
    \n \n
      \n \n
    1.             # Get the appropriate handler method
    2. \n \n
    3.             if request.method.lower() in self.http_method_names:
    4. \n \n
    5.                 handler = getattr(self, request.method.lower(),
    6. \n \n
    7.                                   self.http_method_not_allowed)
    8. \n \n
    9.             else:
    10. \n \n
    11.                 handler = self.http_method_not_allowed
    12. \n \n
    13. \n \n
    \n \n
      \n
    1.             response = handler(request, *args, **kwargs)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         except Exception as exc:
    3. \n \n
    4.             response = self.handle_exception(exc)
    5. \n \n
    6. \n \n
    7.         self.response = self.finalize_response(request, response, *args, **kwargs)
    8. \n \n
    9.         return self.response
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    handler
    <bound method CreateModelMixin.create of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>>
    kwargs
    {}
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\mixins.py, line 19, in create\n \n\n \n
    \n \n
      \n \n
    1. class CreateModelMixin:
    2. \n \n
    3.     """
    4. \n \n
    5.     Create a model instance.
    6. \n \n
    7.     """
    8. \n \n
    9.     def create(self, request, *args, **kwargs):
    10. \n \n
    11.         serializer = self.get_serializer(data=request.data)
    12. \n \n
    13.         serializer.is_valid(raise_exception=True)
    14. \n \n
    \n \n
      \n
    1.         self.perform_create(serializer)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.         headers = self.get_success_headers(serializer.data)
    2. \n \n
    3.         return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
    4. \n \n
    5. \n \n
    6.     def perform_create(self, serializer):
    7. \n \n
    8.         serializer.save()
    9. \n \n
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    kwargs
    {}
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    serializer
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'name': '\u06af\u0648\u0633\u0641\u0646\u062f'}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\mixins.py, line 24, in perform_create\n \n\n \n
    \n \n
      \n \n
    1.         serializer = self.get_serializer(data=request.data)
    2. \n \n
    3.         serializer.is_valid(raise_exception=True)
    4. \n \n
    5.         self.perform_create(serializer)
    6. \n \n
    7.         headers = self.get_success_headers(serializer.data)
    8. \n \n
    9.         return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
    10. \n \n
    11. \n \n
    12.     def perform_create(self, serializer):
    13. \n \n
    \n \n
      \n
    1.         serializer.save()\n            ^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def get_success_headers(self, data):
    3. \n \n
    4.         try:
    5. \n \n
    6.             return {'Location': str(data[api_settings.URL_FIELD_NAME])}
    7. \n \n
    8.         except (TypeError, KeyError):
    9. \n \n
    10.             return {}
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    serializer
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'name': '\u06af\u0648\u0633\u0641\u0646\u062f'}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\serializers.py, line 210, in save\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         if self.instance is not None:
    3. \n \n
    4.             self.instance = self.update(self.instance, validated_data)
    5. \n \n
    6.             assert self.instance is not None, (
    7. \n \n
    8.                 '`update()` did not return an object instance.'
    9. \n \n
    10.             )
    11. \n \n
    12.         else:
    13. \n \n
    \n \n
      \n
    1.             self.instance = self.create(validated_data)\n                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             assert self.instance is not None, (
    2. \n \n
    3.                 '`create()` did not return an object instance.'
    4. \n \n
    5.             )
    6. \n \n
    7. \n \n
    8.         return self.instance
    9. \n \n
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    kwargs
    {}
    self
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'name': '\u06af\u0648\u0633\u0641\u0646\u062f'}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    validated_data
    {}
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\serializers.py, line 991, in create\n \n\n \n
    \n \n
      \n \n
    1.         info = model_meta.get_field_info(ModelClass)
    2. \n \n
    3.         many_to_many = {}
    4. \n \n
    5.         for field_name, relation_info in info.relations.items():
    6. \n \n
    7.             if relation_info.to_many and (field_name in validated_data):
    8. \n \n
    9.                 many_to_many[field_name] = validated_data.pop(field_name)
    10. \n \n
    11. \n \n
    12.         try:
    13. \n \n
    \n \n
      \n
    1.             instance = ModelClass._default_manager.create(**validated_data)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.         except TypeError:
    2. \n \n
    3.             tb = traceback.format_exc()
    4. \n \n
    5.             msg = (
    6. \n \n
    7.                 'Got a `TypeError` when calling `%s.%s.create()`. '
    8. \n \n
    9.                 'This may be because you have a writable field on the '
    10. \n \n
    11.                 'serializer class that is not a valid argument to '
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ModelClass
    <class 'apps.livestock.models.LiveStock'>
    field_name
    'species'
    info
    FieldInfo(pk=<django.db.models.fields.BigAutoField: id>, fields={'create_date': <django.db.models.fields.DateTimeField: create_date>, 'modify_date': <django.db.models.fields.DateTimeField: modify_date>, 'creator_info': <django.db.models.fields.CharField: creator_info>, 'modifier_info': <django.db.models.fields.CharField: modifier_info>, 'trash': <django.db.models.fields.BooleanField: trash>, 'weight_type': <django.db.models.fields.CharField: weight_type>, 'birthdate': <django.db.models.fields.DateTimeField: birthdate>, 'gender': <django.db.models.fields.IntegerField: gender>}, forward_relations={'created_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: created_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'modified_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: modified_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'herd': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: herd>, related_model=<class 'apps.herd.models.Herd'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'tag': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: tag>, related_model=<class 'apps.tag.models.Tag'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: type>, related_model=<class 'apps.livestock.models.LiveStockType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'use_type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: use_type>, related_model=<class 'apps.livestock.models.LiveStockUseType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'species': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: species>, related_model=<class 'apps.livestock.models.LiveStockSpecies'>, to_many=False, to_field='id', has_through_model=False, reverse=False)}, reverse_relations={}, fields_and_pk={'pk': <django.db.models.fields.BigAutoField: id>, 'id': <django.db.models.fields.BigAutoField: id>, 'create_date': <django.db.models.fields.DateTimeField: create_date>, 'modify_date': <django.db.models.fields.DateTimeField: modify_date>, 'creator_info': <django.db.models.fields.CharField: creator_info>, 'modifier_info': <django.db.models.fields.CharField: modifier_info>, 'trash': <django.db.models.fields.BooleanField: trash>, 'weight_type': <django.db.models.fields.CharField: weight_type>, 'birthdate': <django.db.models.fields.DateTimeField: birthdate>, 'gender': <django.db.models.fields.IntegerField: gender>}, relations={'created_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: created_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'modified_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: modified_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'herd': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: herd>, related_model=<class 'apps.herd.models.Herd'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'tag': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: tag>, related_model=<class 'apps.tag.models.Tag'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: type>, related_model=<class 'apps.livestock.models.LiveStockType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'use_type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: use_type>, related_model=<class 'apps.livestock.models.LiveStockUseType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), '\u2026 <trimmed 4321 bytes string>
    many_to_many
    {}
    relation_info
    RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: species>, related_model=<class 'apps.livestock.models.LiveStockSpecies'>, to_many=False, to_field='id', has_through_model=False, reverse=False)
    self
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'name': '\u06af\u0648\u0633\u0641\u0646\u062f'}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    validated_data
    {}
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\manager.py, line 87, in manager_method\n \n\n \n
    \n \n
      \n \n
    1.         return []
    2. \n \n
    3. \n \n
    4.     @classmethod
    5. \n \n
    6.     def _get_queryset_methods(cls, queryset_class):
    7. \n \n
    8.         def create_method(name, method):
    9. \n \n
    10.             @wraps(method)
    11. \n \n
    12.             def manager_method(self, *args, **kwargs):
    13. \n \n
    \n \n
      \n
    1.                 return getattr(self.get_queryset(), name)(*args, **kwargs)\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.             return manager_method
    3. \n \n
    4. \n \n
    5.         new_methods = {}
    6. \n \n
    7.         for name, method in inspect.getmembers(
    8. \n \n
    9.             queryset_class, predicate=inspect.isfunction
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    kwargs
    {}
    name
    'create'
    self
    <django.db.models.manager.Manager object at 0x000001C39D00D010>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\query.py, line 677, in create\n \n\n \n
    \n \n
      \n \n
    1.             raise ValueError(
    2. \n \n
    3.                 "The following fields do not exist in this model: %s"
    4. \n \n
    5.                 % ", ".join(reverse_one_to_one_fields)
    6. \n \n
    7.             )
    8. \n \n
    9. \n \n
    10.         obj = self.model(**kwargs)
    11. \n \n
    12.         self._for_write = True
    13. \n \n
    \n \n
      \n
    1.         obj.save(force_insert=True, using=self.db)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.         return obj
    2. \n \n
    3. \n \n
    4.     async def acreate(self, **kwargs):
    5. \n \n
    6.         return await sync_to_async(self.create)(**kwargs)
    7. \n \n
    8. \n \n
    9.     def _prepare_for_bulk_create(self, objs):
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    kwargs
    {}
    obj
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    reverse_one_to_one_fields
    frozenset()
    self
    <QuerySet []>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Project\\Rasaddam_Backend\\apps\\livestock\\models.py, line 87, in save\n \n\n \n
    \n \n
      \n \n
    1.     )
    2. \n \n
    3.     gender = models.IntegerField(choices=gender_type, default=1)
    4. \n \n
    5. \n \n
    6.     def __str__(self):
    7. \n \n
    8.         return f'{self.type.name}-{self.species.name}'
    9. \n \n
    10. \n \n
    11.     def save(self, *args, **kwargs):
    12. \n \n
    \n \n
      \n
    1.         super(LiveStock, self).save(*args, **kwargs)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    __class__
    <class 'apps.livestock.models.LiveStock'>
    args
    ()
    kwargs
    {'force_insert': True, 'using': 'default'}
    self
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Project\\Rasaddam_Backend\\apps\\core\\models.py, line 37, in save\n \n\n \n
    \n \n
      \n \n
    1.     def save(self, *args, **kwargs):
    2. \n \n
    3.         user = get_current_user()  # get user object
    4. \n \n
    5.         self.modified_by = user
    6. \n \n
    7.         if not self.creator_info:
    8. \n \n
    9.             self.created_by = user
    10. \n \n
    11.             self.creator_info = user.first_name + ' ' + user.last_name + '-' + user.national_code
    12. \n \n
    13.         self.modifier_info = user.first_name + ' ' + user.last_name + '-' + user.national_code
    14. \n \n
    \n \n
      \n
    1.         super(BaseModel, self).save(*args, **kwargs)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2. \n \n
    3. class MobileTest(BaseModel):
    4. \n \n
    5.     latitude = models.DecimalField(max_digits=22, decimal_places=16)
    6. \n \n
    7.     longitude = models.DecimalField(max_digits=22, decimal_places=16)
    8. \n \n
    9.     count = models.IntegerField(default=0)
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    __class__
    <class 'apps.core.models.BaseModel'>
    args
    ()
    kwargs
    {'force_insert': True, 'using': 'default'}
    self
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    user
    <User: moji \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-None>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 814, in save\n \n\n \n
    \n \n
      \n \n
    1.             for field in self._meta.concrete_fields:
    2. \n \n
    3.                 if not field.primary_key and not hasattr(field, "through"):
    4. \n \n
    5.                     field_names.add(field.attname)
    6. \n \n
    7.             loaded_fields = field_names.difference(deferred_fields)
    8. \n \n
    9.             if loaded_fields:
    10. \n \n
    11.                 update_fields = frozenset(loaded_fields)
    12. \n \n
    13. \n \n
    \n \n
      \n
    1.         self.save_base(\n             ^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             using=using,
    2. \n \n
    3.             force_insert=force_insert,
    4. \n \n
    5.             force_update=force_update,
    6. \n \n
    7.             update_fields=update_fields,
    8. \n \n
    9.         )
    10. \n \n
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    deferred_fields
    set()
    force_insert
    True
    force_update
    False
    self
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    update_fields
    None
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 901, in save_base\n \n\n \n
    \n \n
      \n \n
    1.             parent_inserted = False
    2. \n \n
    3.             if not raw:
    4. \n \n
    5.                 # Validate force insert only when parents are inserted.
    6. \n \n
    7.                 force_insert = self._validate_force_insert(force_insert)
    8. \n \n
    9.                 parent_inserted = self._save_parents(
    10. \n \n
    11.                     cls, using, update_fields, force_insert
    12. \n \n
    13.                 )
    14. \n \n
    \n \n
      \n
    1.             updated = self._save_table(\n                           
      \u2026
    2. \n
    \n \n
      \n \n
    1.                 raw,
    2. \n \n
    3.                 cls,
    4. \n \n
    5.                 force_insert or parent_inserted,
    6. \n \n
    7.                 force_update,
    8. \n \n
    9.                 using,
    10. \n \n
    11.                 update_fields,
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    cls
    <class 'apps.livestock.models.LiveStock'>
    context_manager
    <contextlib._GeneratorContextManager object at 0x000001C39D4BFCE0>
    force_insert
    (<class 'apps.livestock.models.LiveStock'>,)
    force_update
    False
    meta
    <Options for LiveStock>
    origin
    <class 'apps.livestock.models.LiveStock'>
    parent_inserted
    False
    raw
    False
    self
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    update_fields
    None
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 1059, in _save_table\n \n\n \n
    \n \n
      \n \n
    1.                 )
    2. \n \n
    3.             fields = [
    4. \n \n
    5.                 f
    6. \n \n
    7.                 for f in meta.local_concrete_fields
    8. \n \n
    9.                 if not f.generated and (pk_set or f is not meta.auto_field)
    10. \n \n
    11.             ]
    12. \n \n
    13.             returning_fields = meta.db_returning_fields
    14. \n \n
    \n \n
      \n
    1.             results = self._do_insert(\n                            
      \u2026
    2. \n
    \n \n
      \n \n
    1.                 cls._base_manager, using, fields, returning_fields, raw
    2. \n \n
    3.             )
    4. \n \n
    5.             if results:
    6. \n \n
    7.                 for value, field in zip(results[0], returning_fields):
    8. \n \n
    9.                     setattr(self, field.attname, value)
    10. \n \n
    11.         return updated
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    cls
    <class 'apps.livestock.models.LiveStock'>
    fields
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    force_insert
    (<class 'apps.livestock.models.LiveStock'>,)
    force_update
    False
    meta
    <Options for LiveStock>
    non_pks
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    pk_set
    False
    pk_val
    None
    raw
    False
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    update_fields
    None
    updated
    False
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 1100, in _do_insert\n \n\n \n
    \n \n
      \n \n
    1.         return filtered._update(values) > 0
    2. \n \n
    3. \n \n
    4.     def _do_insert(self, manager, using, fields, returning_fields, raw):
    5. \n \n
    6.         """
    7. \n \n
    8.         Do an INSERT. If returning_fields is defined then this method should
    9. \n \n
    10.         return the newly created data for the model.
    11. \n \n
    12.         """
    13. \n \n
    \n \n
      \n
    1.         return manager._insert(\n                     
      \u2026
    2. \n
    \n \n
      \n \n
    1.             [self],
    2. \n \n
    3.             fields=fields,
    4. \n \n
    5.             returning_fields=returning_fields,
    6. \n \n
    7.             using=using,
    8. \n \n
    9.             raw=raw,
    10. \n \n
    11.         )
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    fields
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    manager
    <django.db.models.manager.Manager object at 0x000001C39D151820>
    raw
    False
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\manager.py, line 87, in manager_method\n \n\n \n
    \n \n
      \n \n
    1.         return []
    2. \n \n
    3. \n \n
    4.     @classmethod
    5. \n \n
    6.     def _get_queryset_methods(cls, queryset_class):
    7. \n \n
    8.         def create_method(name, method):
    9. \n \n
    10.             @wraps(method)
    11. \n \n
    12.             def manager_method(self, *args, **kwargs):
    13. \n \n
    \n \n
      \n
    1.                 return getattr(self.get_queryset(), name)(*args, **kwargs)\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.             return manager_method
    3. \n \n
    4. \n \n
    5.         new_methods = {}
    6. \n \n
    7.         for name, method in inspect.getmembers(
    8. \n \n
    9.             queryset_class, predicate=inspect.isfunction
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    kwargs
    {'fields': [<django.db.models.fields.DateTimeField: create_date>,\n            <django.db.models.fields.DateTimeField: modify_date>,\n            <django.db.models.fields.related.ForeignKey: created_by>,\n            <django.db.models.fields.related.ForeignKey: modified_by>,\n            <django.db.models.fields.CharField: creator_info>,\n            <django.db.models.fields.CharField: modifier_info>,\n            <django.db.models.fields.BooleanField: trash>,\n            <django.db.models.fields.related.ForeignKey: herd>,\n            <django.db.models.fields.related.ForeignKey: tag>,\n            <django.db.models.fields.related.ForeignKey: type>,\n            <django.db.models.fields.related.ForeignKey: use_type>,\n            <django.db.models.fields.CharField: weight_type>,\n            <django.db.models.fields.related.ForeignKey: species>,\n            <django.db.models.fields.DateTimeField: birthdate>,\n            <django.db.models.fields.IntegerField: gender>],\n 'raw': False,\n 'returning_fields': [<django.db.models.fields.BigAutoField: id>],\n 'using': 'default'}
    name
    '_insert'
    self
    <django.db.models.manager.Manager object at 0x000001C39D151820>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\query.py, line 1845, in _insert\n \n\n \n
    \n \n
      \n \n
    1.         query = sql.InsertQuery(
    2. \n \n
    3.             self.model,
    4. \n \n
    5.             on_conflict=on_conflict,
    6. \n \n
    7.             update_fields=update_fields,
    8. \n \n
    9.             unique_fields=unique_fields,
    10. \n \n
    11.         )
    12. \n \n
    13.         query.insert_values(fields, objs, raw=raw)
    14. \n \n
    \n \n
      \n
    1.         return query.get_compiler(using=using).execute_sql(returning_fields)\n                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     _insert.alters_data = True
    3. \n \n
    4.     _insert.queryset_only = False
    5. \n \n
    6. \n \n
    7.     def _batched_insert(
    8. \n \n
    9.         self,
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    fields
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    objs
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    on_conflict
    None
    query
    <django.db.models.sql.subqueries.InsertQuery object at 0x000001C39D4BFD40>
    raw
    False
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    <QuerySet []>
    unique_fields
    None
    update_fields
    None
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\sql\\compiler.py, line 1822, in execute_sql\n \n\n \n
    \n \n
      \n \n
    1.             and len(self.query.objs) != 1
    2. \n \n
    3.             and not self.connection.features.can_return_rows_from_bulk_insert
    4. \n \n
    5.         )
    6. \n \n
    7.         opts = self.query.get_meta()
    8. \n \n
    9.         self.returning_fields = returning_fields
    10. \n \n
    11.         with self.connection.cursor() as cursor:
    12. \n \n
    13.             for sql, params in self.as_sql():
    14. \n \n
    \n \n
      \n
    1.                 cursor.execute(sql, params)\n                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             if not self.returning_fields:
    2. \n \n
    3.                 return []
    4. \n \n
    5.             if (
    6. \n \n
    7.                 self.connection.features.can_return_rows_from_bulk_insert
    8. \n \n
    9.                 and len(self.query.objs) > 1
    10. \n \n
    11.             ):
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    cursor
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    opts
    <Options for LiveStock>
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    <SQLInsertCompiler model=LiveStock connection=<DatabaseWrapper vendor='postgresql' alias='default'> using='default'>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 122, in execute\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2. \n \n
    3. class CursorDebugWrapper(CursorWrapper):
    4. \n \n
    5.     # XXX callproc isn't instrumented at this time.
    6. \n \n
    7. \n \n
    8.     def execute(self, sql, params=None):
    9. \n \n
    10.         with self.debug_sql(sql, params, use_last_executed_query=True):
    11. \n \n
    \n \n
      \n
    1.             return super().execute(sql, params)\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def executemany(self, sql, param_list):
    3. \n \n
    4.         with self.debug_sql(sql, param_list, many=True):
    5. \n \n
    6.             return super().executemany(sql, param_list)
    7. \n \n
    8. \n \n
    9.     @contextmanager
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    __class__
    <class 'django.db.backends.utils.CursorDebugWrapper'>
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 79, in execute\n \n\n \n
    \n \n
      \n \n
    1.             elif kparams is None:
    2. \n \n
    3.                 return self.cursor.callproc(procname, params)
    4. \n \n
    5.             else:
    6. \n \n
    7.                 params = params or ()
    8. \n \n
    9.                 return self.cursor.callproc(procname, params, kparams)
    10. \n \n
    11. \n \n
    12.     def execute(self, sql, params=None):
    13. \n \n
    \n \n
      \n
    1.         return self._execute_with_wrappers(\n                   
      \u2026
    2. \n
    \n \n
      \n \n
    1.             sql, params, many=False, executor=self._execute
    2. \n \n
    3.         )
    4. \n \n
    5. \n \n
    6.     def executemany(self, sql, param_list):
    7. \n \n
    8.         return self._execute_with_wrappers(
    9. \n \n
    10.             sql, param_list, many=True, executor=self._executemany
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 92, in _execute_with_wrappers\n \n\n \n
    \n \n
      \n \n
    1.             sql, param_list, many=True, executor=self._executemany
    2. \n \n
    3.         )
    4. \n \n
    5. \n \n
    6.     def _execute_with_wrappers(self, sql, params, many, executor):
    7. \n \n
    8.         context = {"connection": self.db, "cursor": self}
    9. \n \n
    10.         for wrapper in reversed(self.db.execute_wrappers):
    11. \n \n
    12.             executor = functools.partial(wrapper, executor)
    13. \n \n
    \n \n
      \n
    1.         return executor(sql, params, many, context)\n                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def _execute(self, sql, params, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    context
    {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>}
    executor
    <bound method CursorWrapper._execute of <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>>
    many
    False
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 100, in _execute\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.     def _execute(self, sql, params, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    12.         self.db.validate_no_broken_transaction()
    13. \n \n
    \n \n
      \n
    1.         with self.db.wrap_database_errors:\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             if params is None:
    2. \n \n
    3.                 # params default might be backend specific.
    4. \n \n
    5.                 return self.cursor.execute(sql)
    6. \n \n
    7.             else:
    8. \n \n
    9.                 return self.cursor.execute(sql, params)
    10. \n \n
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ignored_wrapper_args
    (False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n  'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>})
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\utils.py, line 91, in __exit__\n \n\n \n
    \n \n
      \n \n
    1.             db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__)
    2. \n \n
    3.             if issubclass(exc_type, db_exc_type):
    4. \n \n
    5.                 dj_exc_value = dj_exc_type(*exc_value.args)
    6. \n \n
    7.                 # Only set the 'errors_occurred' flag for errors that may make
    8. \n \n
    9.                 # the connection unusable.
    10. \n \n
    11.                 if dj_exc_type not in (DataError, IntegrityError):
    12. \n \n
    13.                     self.wrapper.errors_occurred = True
    14. \n \n
    \n \n
      \n
    1.                 raise dj_exc_value.with_traceback(traceback) from exc_value\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def __call__(self, func):
    3. \n \n
    4.         # Note that we are intentionally not using @wraps here for performance
    5. \n \n
    6.         # reasons. Refs #21109.
    7. \n \n
    8.         def inner(*args, **kwargs):
    9. \n \n
    10.             with self:
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    db_exc_type
    <class 'psycopg2.IntegrityError'>
    dj_exc_type
    <class 'django.db.utils.IntegrityError'>
    dj_exc_value
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    exc_type
    <class 'psycopg2.errors.NotNullViolation'>
    exc_value
    NotNullViolation('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    self
    <django.db.utils.DatabaseErrorWrapper object at 0x000001C39D31AE10>
    traceback
    <traceback object at 0x000001C39D4D1EC0>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute\n \n\n \n
    \n \n
      \n \n
    1.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    2. \n \n
    3.         self.db.validate_no_broken_transaction()
    4. \n \n
    5.         with self.db.wrap_database_errors:
    6. \n \n
    7.             if params is None:
    8. \n \n
    9.                 # params default might be backend specific.
    10. \n \n
    11.                 return self.cursor.execute(sql)
    12. \n \n
    13.             else:
    14. \n \n
    \n \n
      \n
    1.                 return self.cursor.execute(sql, params)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def _executemany(self, sql, param_list, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ignored_wrapper_args
    (False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n  'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>})
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n
\n
\n\n
\n
\n \n \n \n \n \n

\n \n
\n
\n\n
\n\n\n
\n

Request information

\n\n\n \n

USER

\n

moji \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-None

\n \n\n

GET

\n \n

No GET data

\n \n\n

POST

\n \n

No POST data

\n \n\n

FILES

\n \n

No FILES data

\n \n\n

COOKIES

\n \n

No cookie data

\n \n\n

META

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
VariableValue
ALLUSERSPROFILE
'C:\\\\ProgramData'
APPCODE_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\appcode.vmoptions'
APPDATA
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming'
CLION_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\clion.vmoptions'
COMMONPROGRAMFILES
'C:\\\\Program Files\\\\Common Files'
COMMONPROGRAMFILES(X86)
'C:\\\\Program Files (x86)\\\\Common Files'
COMMONPROGRAMW6432
'C:\\\\Program Files\\\\Common Files'
COMPUTERNAME
'DESKTOP-77GDGLN'
COMSPEC
'C:\\\\Windows\\\\system32\\\\cmd.exe'
CONTENT_LENGTH
'32'
CONTENT_TYPE
'application/json'
DATAGRIP_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\datagrip.vmoptions'
DATASPELL_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\dataspell.vmoptions'
DEVECOSTUDIO_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\devecostudio.vmoptions'
DJANGO_SETTINGS_MODULE
'Rasaddam_Backend.settings'
DRIVERDATA
'C:\\\\Windows\\\\System32\\\\Drivers\\\\DriverData'
EFC_9236
'1'
FPS_BROWSER_APP_PROFILE_STRING
'Internet Explorer'
FPS_BROWSER_USER_PROFILE_STRING
'Default'
GATEWAY_INTERFACE
'CGI/1.1'
GATEWAY_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\gateway.vmoptions'
GOLAND_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\goland.vmoptions'
HOMEDRIVE
'C:'
HOMEPATH
'\\\\Users\\\\Housh8'
HTTP_ACCEPT
'*/*'
HTTP_ACCEPT_ENCODING
'gzip, deflate, br'
HTTP_AUTHORIZATION
('Bearer '\n 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzQ4MTUwNTc5LCJpYXQiOjE3NDgwNjQxNzksImp0aSI6ImY1NjA3MGQ5M2Q3ZTQ2OWY5YjUzZTBiNWU0Yzg4ZGI4IiwidXNlcl9pZCI6MiwibmFtZSI6Im1vamkiLCJtb2JpbGUiOiIwOTM4OTY1NyIsIm5hdGlvbmFsX2NvZGUiOiI0MDYxMDgwNTk4In0.FKrYU38zStPGnrzgoDzvAd5EAiCDuoAFrHPXncAknok')
HTTP_CACHE_CONTROL
'no-cache'
HTTP_CONNECTION
'keep-alive'
HTTP_HOST
'127.0.0.1:8000'
HTTP_POSTMAN_TOKEN
'********************'
HTTP_USER_AGENT
'PostmanRuntime/7.44.0'
IDEA_INITIAL_DIRECTORY
'C:\\\\Users\\\\Housh8\\\\Desktop'
IDEA_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\idea.vmoptions'
JETBRAINSCLIENT_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\jetbrainsclient.vmoptions'
JETBRAINS_CLIENT_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\jetbrains_client.vmoptions'
LOCALAPPDATA
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local'
LOGONSERVER
'\\\\\\\\DESKTOP-77GDGLN'
NODEJS
'C:\\\\ProgramData\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Node.js'
NUMBER_OF_PROCESSORS
'4'
NVM_HOME
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm'
NVM_SYMLINK
'C:\\\\nvm4w\\\\nodejs'
ONEDRIVE
'C:\\\\Users\\\\Housh8\\\\OneDrive'
OS
'Windows_NT'
PATH
('D:\\\\Software\\\\env\\\\Scripts;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Program '\n 'Files\\\\Git\\\\cmd;C:\\\\Program '\n 'Files\\\\nodejs\\\\;D:\\\\Software\\\\python-3.12.0\\\\Scripts\\\\;D:\\\\Software\\\\python-3.12.0\\\\;D:\\\\Software\\\\python\\\\Scripts\\\\;D:\\\\Software\\\\python\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Launcher\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Microsoft '\n 'VS '\n 'Code\\\\bin;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming\\\\npm')
PATHEXT
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
PATH_INFO
'/livestock/web/api/v1/livestock_species/'
PHPSTORM_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\phpstorm.vmoptions'
PROCESSOR_ARCHITECTURE
'AMD64'
PROCESSOR_IDENTIFIER
'Intel64 Family 6 Model 158 Stepping 9, GenuineIntel'
PROCESSOR_LEVEL
'6'
PROCESSOR_REVISION
'9e09'
PROGRAMDATA
'C:\\\\ProgramData'
PROGRAMFILES
'C:\\\\Program Files'
PROGRAMFILES(X86)
'C:\\\\Program Files (x86)'
PROGRAMW6432
'C:\\\\Program Files'
PROMPT
'(env) $P$G'
PSMODULEPATH
('C:\\\\Program '\n 'Files\\\\WindowsPowerShell\\\\Modules;C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\Modules')
PUBLIC
'C:\\\\Users\\\\Public'
PYCHARM_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\pycharm.vmoptions'
QUERY_STRING
''
REMOTE_ADDR
'127.0.0.1'
REMOTE_HOST
''
REQUEST_METHOD
'POST'
RIDER_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\rider.vmoptions'
RUBYMINE_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\rubymine.vmoptions'
RUN_MAIN
'true'
RUSTROVER_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\RustRover.vmoptions'
SCRIPT_NAME
''
SERVER_NAME
'DESKTOP-77GDGLN'
SERVER_PORT
'8000'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SOFTWARE
'WSGIServer/0.2'
SESSIONNAME
'Console'
STUDIO_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\studio.vmoptions'
SYSTEMDRIVE
'C:'
SYSTEMROOT
'C:\\\\Windows'
TEMP
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Temp'
TERMINAL_EMULATOR
'JetBrains-JediTerm'
TERM_SESSION_ID
'eb03bff4-2cc9-43d8-baa8-b91cff85c929'
TMP
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Temp'
USERDOMAIN
'DESKTOP-77GDGLN'
USERDOMAIN_ROAMINGPROFILE
'DESKTOP-77GDGLN'
USERNAME
'Housh8'
USERPROFILE
'C:\\\\Users\\\\Housh8'
VIRTUAL_ENV
'D:\\\\Software\\\\env'
WEBIDE_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\webide.vmoptions'
WEBSTORM_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\webstorm.vmoptions'
WINDIR
'C:\\\\Windows'
_OLD_VIRTUAL_PATH
('C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Program '\n 'Files\\\\Git\\\\cmd;C:\\\\Program '\n 'Files\\\\nodejs\\\\;D:\\\\Software\\\\python-3.12.0\\\\Scripts\\\\;D:\\\\Software\\\\python-3.12.0\\\\;D:\\\\Software\\\\python\\\\Scripts\\\\;D:\\\\Software\\\\python\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Launcher\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Microsoft '\n 'VS '\n 'Code\\\\bin;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming\\\\npm')
_OLD_VIRTUAL_PROMPT
'$P$G'
__INTELLIJ_COMMAND_HISTFILE__
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\JetBrains\\\\PyCharm2021.3\\\\terminal\\\\history\\\\Rasaddam_Backend-history2'
wsgi.errors
<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
wsgi.file_wrapper
<class 'wsgiref.util.FileWrapper'>
wsgi.input
<django.core.handlers.wsgi.LimitedStream object at 0x000001C39D47F430>
wsgi.multiprocess
False
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
\n\n\n

Settings

\n

Using settings module Rasaddam_Backend.settings

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
SettingValue
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
[]
ALLOWED_HOSTS
['localhost', '127.0.0.1', 'https://rasadyar.net/', 'https://localhost:9200']
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS
'********************'
AUTH_USER_MODEL
'authentication.User'
BASE_DIR
WindowsPath('D:/Project/Rasaddam_Backend')
CACHES
{'default': {'BACKEND': 'django_redis.cache.RedisCache',\n             'KEY_PREFIX': '********************',\n             'LOCATION': 'redis://:ydnW4hwzuDRYcTX3FWCHgQ1f@apo.liara.cloud:33740/0',\n             'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}},\n 'memcache': {'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',\n              'LOCATION': '127.0.0.1:11211'}}
CACHE_MIDDLEWARE_ALIAS
'default'
CACHE_MIDDLEWARE_KEY_PREFIX
'********************'
CACHE_MIDDLEWARE_SECONDS
600
CORS_ALLOWED_ORIGINS
('http://localhost:8080',\n 'http://127.0.0.1:8080',\n 'http://127.0.0.1:3000',\n 'http://localhost:3000',\n 'https://rasadyar.net')
CORS_ORIGIN_ALLOW_ALL
True
CORS_ORIGIN_WHITELIST
('http://localhost:8080',\n 'http://127.0.0.1:8080',\n 'http://127.0.0.1:3000',\n 'http://localhost:3000',\n 'https://rasadyar.net')
CSRF_COOKIE_AGE
31449600
CSRF_COOKIE_DOMAIN
None
CSRF_COOKIE_HTTPONLY
False
CSRF_COOKIE_NAME
'csrftoken'
CSRF_COOKIE_PATH
'/'
CSRF_COOKIE_SAMESITE
'Lax'
CSRF_COOKIE_SECURE
False
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME
'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS
[]
CSRF_USE_SESSIONS
False
DATABASES
{'default': {'ATOMIC_REQUESTS': False,\n             'AUTOCOMMIT': True,\n             'CONN_HEALTH_CHECKS': False,\n             'CONN_MAX_AGE': 0,\n             'ENGINE': 'django.db.backends.postgresql_psycopg2',\n             'HOST': 'monte-rosa.liara.cloud',\n             'NAME': 'postgres',\n             'OPTIONS': {},\n             'PASSWORD': '********************',\n             'PORT': '32718',\n             'TEST': {'CHARSET': None,\n                      'COLLATION': None,\n                      'MIGRATE': True,\n                      'MIRROR': None,\n                      'NAME': None},\n             'TIME_ZONE': None,\n             'USER': 'root'}}
DATABASE_ROUTERS
[]
DATA_UPLOAD_MAX_MEMORY_SIZE
50242880
DATA_UPLOAD_MAX_NUMBER_FIELDS
1000
DATA_UPLOAD_MAX_NUMBER_FILES
100
DATETIME_FORMAT
'%Y-%m-%d %H:%M:%S'
DATETIME_INPUT_FORMATS
['%Y-%m-%d %H:%M:%S',\n '%Y-%m-%d %H:%M:%S.%f',\n '%Y-%m-%d %H:%M',\n '%m/%d/%Y %H:%M:%S',\n '%m/%d/%Y %H:%M:%S.%f',\n '%m/%d/%Y %H:%M',\n '%m/%d/%y %H:%M:%S',\n '%m/%d/%y %H:%M:%S.%f',\n '%m/%d/%y %H:%M']
DATE_FORMAT
'N j, Y'
DATE_INPUT_FORMATS
['%Y-%m-%d',\n '%m/%d/%Y',\n '%m/%d/%y',\n '%b %d %Y',\n '%b %d, %Y',\n '%d %b %Y',\n '%d %b, %Y',\n '%B %d %Y',\n '%B %d, %Y',\n '%d %B %Y',\n '%d %B, %Y']
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DECIMAL_SEPARATOR
'.'
DEFAULT_AUTO_FIELD
'django.db.models.BigAutoField'
DEFAULT_CHARSET
'utf-8'
DEFAULT_EXCEPTION_REPORTER
'django.views.debug.ExceptionReporter'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISALLOWED_USER_AGENTS
[]
ELASTICSEARCH_DSL
{'default': {'hosts': 'http://monte-rosa.liara.cloud:31157',\n             'http_auth': ('elastic', 'uYkiQ860vLW8DIbWpNjqtz2B')}}
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'localhost'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
''
EMAIL_PORT
25
EMAIL_SSL_CERTFILE
None
EMAIL_SSL_KEYFILE
'********************'
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_TIMEOUT
None
EMAIL_USE_LOCALTIME
False
EMAIL_USE_SSL
False
EMAIL_USE_TLS
False
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
['django.core.files.uploadhandler.MemoryFileUploadHandler',\n 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
420
FILE_UPLOAD_TEMP_DIR
None
FIRST_DAY_OF_WEEK
0
FIXTURE_DIRS
[]
FORCE_SCRIPT_NAME
None
FORMAT_MODULE_PATH
None
FORMS_URLFIELD_ASSUME_HTTPS
False
FORM_RENDERER
'django.forms.renderers.DjangoTemplates'
IGNORABLE_404_URLS
[]
INSTALLED_APPS
['django.contrib.admin',\n 'django.contrib.auth',\n 'django.contrib.contenttypes',\n 'django.contrib.sessions',\n 'django.contrib.messages',\n 'django.contrib.staticfiles',\n 'django_elasticsearch_dsl',\n 'django_elasticsearch_dsl_drf',\n 'rest_framework',\n 'corsheaders',\n 'rest_framework_simplejwt',\n 'rest_framework_simplejwt.token_blacklist',\n 'apps.authentication.apps.AuthenticationConfig',\n 'apps.authorization.apps.AuthorizationConfig',\n 'apps.captcha_app.apps.CaptchaAppConfig',\n 'apps.core.apps.CoreConfig',\n 'apps.herd.apps.HerdAppConfig',\n 'apps.livestock.apps.LivestockConfig',\n 'apps.pos_machine.apps.PosMachineConfig',\n 'apps.tag.apps.TagConfig',\n 'apps.warehouse.apps.WarehouseConfig',\n 'apps.search.apps.SearchConfig',\n 'apps.log.apps.LogConfig',\n 'rest_captcha',\n 'captcha',\n 'drf_yasg']
INTERNAL_IPS
[]
LANGUAGES
[('af', 'Afrikaans'),\n ('ar', 'Arabic'),\n ('ar-dz', 'Algerian Arabic'),\n ('ast', 'Asturian'),\n ('az', 'Azerbaijani'),\n ('bg', 'Bulgarian'),\n ('be', 'Belarusian'),\n ('bn', 'Bengali'),\n ('br', 'Breton'),\n ('bs', 'Bosnian'),\n ('ca', 'Catalan'),\n ('ckb', 'Central Kurdish (Sorani)'),\n ('cs', 'Czech'),\n ('cy', 'Welsh'),\n ('da', 'Danish'),\n ('de', 'German'),\n ('dsb', 'Lower Sorbian'),\n ('el', 'Greek'),\n ('en', 'English'),\n ('en-au', 'Australian English'),\n ('en-gb', 'British English'),\n ('eo', 'Esperanto'),\n ('es', 'Spanish'),\n ('es-ar', 'Argentinian Spanish'),\n ('es-co', 'Colombian Spanish'),\n ('es-mx', 'Mexican Spanish'),\n ('es-ni', 'Nicaraguan Spanish'),\n ('es-ve', 'Venezuelan Spanish'),\n ('et', 'Estonian'),\n ('eu', 'Basque'),\n ('fa', 'Persian'),\n ('fi', 'Finnish'),\n ('fr', 'French'),\n ('fy', 'Frisian'),\n ('ga', 'Irish'),\n ('gd', 'Scottish Gaelic'),\n ('gl', 'Galician'),\n ('he', 'Hebrew'),\n ('hi', 'Hindi'),\n ('hr', 'Croatian'),\n ('hsb', 'Upper Sorbian'),\n ('hu', 'Hungarian'),\n ('hy', 'Armenian'),\n ('ia', 'Interlingua'),\n ('id', 'Indonesian'),\n ('ig', 'Igbo'),\n ('io', 'Ido'),\n ('is', 'Icelandic'),\n ('it', 'Italian'),\n ('ja', 'Japanese'),\n ('ka', 'Georgian'),\n ('kab', 'Kabyle'),\n ('kk', 'Kazakh'),\n ('km', 'Khmer'),\n ('kn', 'Kannada'),\n ('ko', 'Korean'),\n ('ky', 'Kyrgyz'),\n ('lb', 'Luxembourgish'),\n ('lt', 'Lithuanian'),\n ('lv', 'Latvian'),\n ('mk', 'Macedonian'),\n ('ml', 'Malayalam'),\n ('mn', 'Mongolian'),\n ('mr', 'Marathi'),\n ('ms', 'Malay'),\n ('my', 'Burmese'),\n ('nb', 'Norwegian Bokm\u00e5l'),\n ('ne', 'Nepali'),\n ('nl', 'Dutch'),\n ('nn', 'Norwegian Nynorsk'),\n ('os', 'Ossetic'),\n ('pa', 'Punjabi'),\n ('pl', 'Polish'),\n ('pt', 'Portuguese'),\n ('pt-br', 'Brazilian Portuguese'),\n ('ro', 'Romanian'),\n ('ru', 'Russian'),\n ('sk', 'Slovak'),\n ('sl', 'Slovenian'),\n ('sq', 'Albanian'),\n ('sr', 'Serbian'),\n ('sr-latn', 'Serbian Latin'),\n ('sv', 'Swedish'),\n ('sw', 'Swahili'),\n ('ta', 'Tamil'),\n ('te', 'Telugu'),\n ('tg', 'Tajik'),\n ('th', 'Thai'),\n ('tk', 'Turkmen'),\n ('tr', 'Turkish'),\n ('tt', 'Tatar'),\n ('udm', 'Udmurt'),\n ('ug', 'Uyghur'),\n ('uk', 'Ukrainian'),\n ('ur', 'Urdu'),\n ('uz', 'Uzbek'),\n ('vi', 'Vietnamese'),\n ('zh-hans', 'Simplified Chinese'),\n ('zh-hant', 'Traditional Chinese')]
LANGUAGES_BIDI
['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ug', 'ur']
LANGUAGE_CODE
'en-us'
LANGUAGE_COOKIE_AGE
None
LANGUAGE_COOKIE_DOMAIN
None
LANGUAGE_COOKIE_HTTPONLY
False
LANGUAGE_COOKIE_NAME
'django_language'
LANGUAGE_COOKIE_PATH
'/'
LANGUAGE_COOKIE_SAMESITE
None
LANGUAGE_COOKIE_SECURE
False
LOCALE_PATHS
[]
LOGGING
{}
LOGGING_CONFIG
'logging.config.dictConfig'
LOGIN_REDIRECT_URL
'/accounts/profile/'
LOGIN_URL
'rest_framework:login'
LOGOUT_REDIRECT_URL
None
LOGOUT_URL
'rest_framework:logout'
MANAGERS
[]
MEDIA_ROOT
''
MEDIA_URL
'/'
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE
['django.middleware.security.SecurityMiddleware',\n 'django.contrib.sessions.middleware.SessionMiddleware',\n 'django.middleware.common.CommonMiddleware',\n 'django.middleware.csrf.CsrfViewMiddleware',\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n 'django.contrib.messages.middleware.MessageMiddleware',\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\n 'crum.CurrentRequestUserMiddleware',\n 'apps.log.middlewares.SaveLog']
MIGRATION_MODULES
{}
MONGODB_DATABASES
{'default': {'host': '', 'name': 'mongodb', 'tz_aware': True}}
MONTH_DAY_FORMAT
'F j'
NUMBER_GROUPING
0
PASSWORD_HASHERS
'********************'
PASSWORD_RESET_TIMEOUT
'********************'
PREPEND_WWW
False
REST_CAPTCHA
{'CAPTCHA_BACKGROUND_COLOR': '#ffffff',\n 'CAPTCHA_CACHE': 'default',\n 'CAPTCHA_CACHE_KEY': '********************',\n 'CAPTCHA_FONT_SIZE': 35,\n 'CAPTCHA_FOREGROUND_COLOR': '#000000',\n 'CAPTCHA_IMAGE_SIZE': (90, 20),\n 'CAPTCHA_LENGTH': 6,\n 'CAPTCHA_LETTER_ROTATION': (-35, 35),\n 'CAPTCHA_TIMEOUT': 300,\n 'FILTER_FUNCTION': 'rest_captcha.captcha.filter_default',\n 'NOISE_FUNCTION': 'apps.captcha_app.api.v1.serializers.noise_default'}
REST_FRAMEWORK
{'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_simplejwt.authentication.JWTAuthentication',\n                                    'rest_framework.authentication.SessionAuthentication',\n                                    'rest_framework.authentication.BasicAuthentication'),\n 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',\n 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),\n 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema',\n 'PAGE_SIZE': 25}
ROOT_URLCONF
'Rasaddam_Backend.urls'
SECRET_KEY
'********************'
SECRET_KEY_FALLBACKS
'********************'
SECURE_CONTENT_TYPE_NOSNIFF
True
SECURE_CROSS_ORIGIN_OPENER_POLICY
'same-origin'
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
SECURE_HSTS_PRELOAD
False
SECURE_HSTS_SECONDS
0
SECURE_PROXY_SSL_HEADER
('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_REDIRECT_EXEMPT
[]
SECURE_REFERRER_POLICY
'same-origin'
SECURE_SSL_HOST
None
SECURE_SSL_REDIRECT
False
SERVER_EMAIL
'root@localhost'
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_HTTPONLY
True
SESSION_COOKIE_NAME
'sessionid'
SESSION_COOKIE_PATH
'/'
SESSION_COOKIE_SAMESITE
'Lax'
SESSION_COOKIE_SECURE
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
False
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE
'Rasaddam_Backend.settings'
SHORT_DATETIME_FORMAT
'm/d/Y P'
SHORT_DATE_FORMAT
'm/d/Y'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS
[]
SIMPLE_JWT
{'ACCESS_TOKEN_LIFETIME': '********************',\n 'ALGORITHM': 'HS256',\n 'AUDIENCE': None,\n 'AUTH_HEADER_NAME': 'HTTP_AUTHORIZATION',\n 'AUTH_HEADER_TYPES': ('Bearer',),\n 'AUTH_TOKEN_CLASSES': '********************',\n 'BLACKLIST_AFTER_ROTATION': False,\n 'ISSUER': None,\n 'JSON_ENCODER': None,\n 'JTI_CLAIM': 'jti',\n 'JWK_URL': None,\n 'LEEWAY': 0,\n 'REFRESH_TOKEN_LIFETIME': '********************',\n 'ROTATE_REFRESH_TOKENS': '********************',\n 'SIGNING_KEY': '********************',\n 'SLIDING_TOKEN_LIFETIME': '********************',\n 'SLIDING_TOKEN_OBTAIN_SERIALIZER': '********************',\n 'SLIDING_TOKEN_REFRESH_EXP_CLAIM': '********************',\n 'SLIDING_TOKEN_REFRESH_LIFETIME': '********************',\n 'SLIDING_TOKEN_REFRESH_SERIALIZER': '********************',\n 'TOKEN_BLACKLIST_SERIALIZER': '********************',\n 'TOKEN_OBTAIN_SERIALIZER': '********************',\n 'TOKEN_REFRESH_SERIALIZER': '********************',\n 'TOKEN_TYPE_CLAIM': '********************',\n 'TOKEN_USER_CLASS': '********************',\n 'TOKEN_VERIFY_SERIALIZER': '********************',\n 'UPDATE_LAST_LOGIN': False,\n 'USER_AUTHENTICATION_RULE': 'rest_framework_simplejwt.authentication.default_user_authentication_rule',\n 'USER_ID_CLAIM': 'user_id',\n 'USER_ID_FIELD': 'id',\n 'VERIFYING_KEY': '********************'}
STATICFILES_DIRS
[]
STATICFILES_FINDERS
['django.contrib.staticfiles.finders.FileSystemFinder',\n 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT
None
STATIC_URL
'/static/'
STORAGES
{'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'},\n 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}}
SWAGGER_SETTINGS
{'SECURITY_DEFINITIONS': {'Bearer': {'in': 'header',\n                                     'name': 'Authorization',\n                                     'type': 'apiKey'},\n                          'basic': {'type': 'basic'}},\n 'USE_SESSION_AUTH': True}
TEMPLATES
[{'APP_DIRS': True,\n  'BACKEND': 'django.template.backends.django.DjangoTemplates',\n  'DIRS': [],\n  'OPTIONS': {'context_processors': ['django.template.context_processors.request',\n                                     'django.contrib.auth.context_processors.auth',\n                                     'django.contrib.messages.context_processors.messages']}}]
TEST_NON_SERIALIZED_APPS
[]
TEST_RUNNER
'django.test.runner.DiscoverRunner'
THOUSAND_SEPARATOR
','
TIME_FORMAT
'P'
TIME_INPUT_FORMATS
['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE
'UTC'
USE_I18N
True
USE_THOUSAND_SEPARATOR
False
USE_TZ
True
USE_X_FORWARDED_HOST
False
USE_X_FORWARDED_PORT
False
WSGI_APPLICATION
'Rasaddam_Backend.wsgi.application'
X_FRAME_OPTIONS
'DENY'
YEAR_MONTH_FORMAT
'F Y'
\n\n
\n\n
\n

\n You\u2019re seeing this error because you have DEBUG = True in your\n Django settings file. Change that to False, and Django will\n display a standard page generated by the handler for this status code.\n

\n
\n\n\n\n", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:57:42.796790", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "6": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 314, "body_response": "{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:59:18.573270", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "7": {"endpoint": "/livestock/web/api/v1/livestock_species/1/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 2171, "body_response": "{\"id\":1,\"name\":\"2\u06af\u0648\u0633\u0641\u0646\u062f\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:00:58.014338", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "8": {"endpoint": "/livestock/web/api/v1/livestock_species/1/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 334, "body_response": "{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:01:10.637178", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "9": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 284, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:30:28.976392", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "10": {"endpoint": "/livestock/web/api/v1/livestock_type/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 313, "body_response": "{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:37:21.437666", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "11": {"endpoint": "/livestock/web/api/v1/livestock_type/1/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 337, "body_response": "{\"id\":1,\"name\":\"2\u06af\u0648\u0633\u0641\u0646\u062f\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:37:54.358753", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "12": {"endpoint": "/livestock/web/api/v1/livestock_type/1/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 329, "body_response": "{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:37:59.053979", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "13": {"endpoint": "/livestock/web/api/v1/livestock_type/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 271, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:48:52.800785", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "14": {"endpoint": "/livestock/web/api/v1/livestock_use_type/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 337, "body_response": "{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:54:54.867935", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "15": {"endpoint": "/livestock/web/api/v1/livestock_use_type/1/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 308, "body_response": "{\"id\":1,\"name\":\"1\u0634\u06cc\u0631\u06cc\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:55:27.720915", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "16": {"endpoint": "/livestock/web/api/v1/livestock_use_type/1/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 280, "body_response": "{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:55:35.257357", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "17": {"endpoint": "/livestock/web/api/v1/livestock_use_type/1/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 253, "body_response": "{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:56:22.583811", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "18": {"endpoint": "/livestock/web/api/v1/livestock_use_type/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 286, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:56:27.092421", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "19": {"endpoint": "/tag/web/api/v1/tag/", "response_code": 404, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 31, "body_response": "\n\n\n \n Page not found at /tag/web/api/v1/tag/\n \n \n\n\n
\n

Page not found (404)

\n \n \n \n \n \n \n \n \n \n \n \n
Request Method:POST
Request URL:http://127.0.0.1:8000/tag/web/api/v1/tag/
\n
\n
\n \n

\n Using the URLconf defined in Rasaddam_Backend.urls,\n Django tried these URL patterns, in this order:\n

\n
    \n \n
  1. \n \n admin/\n \n \n
  2. \n \n
  3. \n \n api-auth/\n \n \n
  4. \n \n
  5. \n \n auth/\n \n \n
  6. \n \n
  7. \n \n auth/\n \n \n
  8. \n \n
  9. \n \n \n \n \n captcha/\n [name='captcha']\n \n
  10. \n \n
  11. \n \n \n \n \n core/\n \n \n
  12. \n \n
  13. \n \n herd/\n \n \n
  14. \n \n
  15. \n \n livestock/\n \n \n
  16. \n \n
  17. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/$\n [name='livestock-list']\n \n
  18. \n \n
  19. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock-list']\n \n
  20. \n \n
  21. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/(?P<pk>[^/.]+)/$\n [name='livestock-detail']\n \n
  22. \n \n
  23. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock-detail']\n \n
  24. \n \n
  25. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/$\n [name='livestock_type-list']\n \n
  26. \n \n
  27. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-list']\n \n
  28. \n \n
  29. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/$\n [name='livestock_type-detail']\n \n
  30. \n \n
  31. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-detail']\n \n
  32. \n \n
  33. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/delete/$\n [name='livestock_type-delete']\n \n
  34. \n \n
  35. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-delete']\n \n
  36. \n \n
  37. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/trash/$\n [name='livestock_type-trash']\n \n
  38. \n \n
  39. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-trash']\n \n
  40. \n \n
  41. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/$\n [name='livestock_use_type-list']\n \n
  42. \n \n
  43. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-list']\n \n
  44. \n \n
  45. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/$\n [name='livestock_use_type-detail']\n \n
  46. \n \n
  47. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-detail']\n \n
  48. \n \n
  49. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/delete/$\n [name='livestock_use_type-delete']\n \n
  50. \n \n
  51. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-delete']\n \n
  52. \n \n
  53. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/trash/$\n [name='livestock_use_type-trash']\n \n
  54. \n \n
  55. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-trash']\n \n
  56. \n \n
  57. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/$\n [name='livestock_species-list']\n \n
  58. \n \n
  59. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-list']\n \n
  60. \n \n
  61. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/$\n [name='livestock_species-detail']\n \n
  62. \n \n
  63. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-detail']\n \n
  64. \n \n
  65. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/delete/$\n [name='livestock_species-delete']\n \n
  66. \n \n
  67. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-delete']\n \n
  68. \n \n
  69. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/trash/$\n [name='livestock_species-trash']\n \n
  70. \n \n
  71. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-trash']\n \n
  72. \n \n
  73. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n \n [name='api-root']\n \n
  74. \n \n
  75. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n <drf_format_suffix:format>\n [name='api-root']\n \n
  76. \n \n
  77. \n \n search/\n \n \n
  78. \n \n
  79. \n \n swagger/\n [name='schema-swagger-ui']\n \n
  80. \n \n
\n

\n \n The current path, tag/web/api/v1/tag/,\n \n didn\u2019t match any of these.\n

\n \n
\n\n
\n

\n You\u2019re seeing this error because you have DEBUG = True in\n your Django settings file. Change that to False, and Django\n will display a standard 404 page.\n

\n
\n\n\n", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:34:24.332883"}, "20": {"endpoint": "/tag/web/api/v1/tag/", "response_code": 404, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 13, "body_response": "\n\n\n \n Page not found at /tag/web/api/v1/tag/\n \n \n\n\n
\n

Page not found (404)

\n \n \n \n \n \n \n \n \n \n \n \n
Request Method:POST
Request URL:http://127.0.0.1:8000/tag/web/api/v1/tag/
\n
\n
\n \n

\n Using the URLconf defined in Rasaddam_Backend.urls,\n Django tried these URL patterns, in this order:\n

\n
    \n \n
  1. \n \n admin/\n \n \n
  2. \n \n
  3. \n \n api-auth/\n \n \n
  4. \n \n
  5. \n \n auth/\n \n \n
  6. \n \n
  7. \n \n auth/\n \n \n
  8. \n \n
  9. \n \n \n \n \n captcha/\n [name='captcha']\n \n
  10. \n \n
  11. \n \n \n \n \n core/\n \n \n
  12. \n \n
  13. \n \n herd/\n \n \n
  14. \n \n
  15. \n \n livestock/\n \n \n
  16. \n \n
  17. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/$\n [name='livestock-list']\n \n
  18. \n \n
  19. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock-list']\n \n
  20. \n \n
  21. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/(?P<pk>[^/.]+)/$\n [name='livestock-detail']\n \n
  22. \n \n
  23. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock-detail']\n \n
  24. \n \n
  25. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/$\n [name='livestock_type-list']\n \n
  26. \n \n
  27. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-list']\n \n
  28. \n \n
  29. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/$\n [name='livestock_type-detail']\n \n
  30. \n \n
  31. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-detail']\n \n
  32. \n \n
  33. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/delete/$\n [name='livestock_type-delete']\n \n
  34. \n \n
  35. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-delete']\n \n
  36. \n \n
  37. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/trash/$\n [name='livestock_type-trash']\n \n
  38. \n \n
  39. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-trash']\n \n
  40. \n \n
  41. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/$\n [name='livestock_use_type-list']\n \n
  42. \n \n
  43. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-list']\n \n
  44. \n \n
  45. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/$\n [name='livestock_use_type-detail']\n \n
  46. \n \n
  47. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-detail']\n \n
  48. \n \n
  49. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/delete/$\n [name='livestock_use_type-delete']\n \n
  50. \n \n
  51. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-delete']\n \n
  52. \n \n
  53. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/trash/$\n [name='livestock_use_type-trash']\n \n
  54. \n \n
  55. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-trash']\n \n
  56. \n \n
  57. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/$\n [name='livestock_species-list']\n \n
  58. \n \n
  59. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-list']\n \n
  60. \n \n
  61. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/$\n [name='livestock_species-detail']\n \n
  62. \n \n
  63. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-detail']\n \n
  64. \n \n
  65. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/delete/$\n [name='livestock_species-delete']\n \n
  66. \n \n
  67. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-delete']\n \n
  68. \n \n
  69. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/trash/$\n [name='livestock_species-trash']\n \n
  70. \n \n
  71. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-trash']\n \n
  72. \n \n
  73. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n \n [name='api-root']\n \n
  74. \n \n
  75. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n <drf_format_suffix:format>\n [name='api-root']\n \n
  76. \n \n
  77. \n \n search/\n \n \n
  78. \n \n
  79. \n \n swagger/\n [name='schema-swagger-ui']\n \n
  80. \n \n
\n

\n \n The current path, tag/web/api/v1/tag/,\n \n didn\u2019t match any of these.\n

\n \n
\n\n
\n

\n You\u2019re seeing this error because you have DEBUG = True in\n your Django settings file. Change that to False, and Django\n will display a standard 404 page.\n

\n
\n\n\n", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:35:36.172718"}, "21": {"endpoint": "/tag/web/api/v1/tag/", "response_code": 404, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 14, "body_response": "\n\n\n \n Page not found at /tag/web/api/v1/tag/\n \n \n\n\n
\n

Page not found (404)

\n \n \n \n \n \n \n \n \n \n \n \n
Request Method:POST
Request URL:http://127.0.0.1:8000/tag/web/api/v1/tag/
\n
\n
\n \n

\n Using the URLconf defined in Rasaddam_Backend.urls,\n Django tried these URL patterns, in this order:\n

\n
    \n \n
  1. \n \n admin/\n \n \n
  2. \n \n
  3. \n \n api-auth/\n \n \n
  4. \n \n
  5. \n \n auth/\n \n \n
  6. \n \n
  7. \n \n auth/\n \n \n
  8. \n \n
  9. \n \n \n \n \n captcha/\n [name='captcha']\n \n
  10. \n \n
  11. \n \n \n \n \n core/\n \n \n
  12. \n \n
  13. \n \n herd/\n \n \n
  14. \n \n
  15. \n \n livestock/\n \n \n
  16. \n \n
  17. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/$\n [name='livestock-list']\n \n
  18. \n \n
  19. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock-list']\n \n
  20. \n \n
  21. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/(?P<pk>[^/.]+)/$\n [name='livestock-detail']\n \n
  22. \n \n
  23. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock-detail']\n \n
  24. \n \n
  25. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/$\n [name='livestock_type-list']\n \n
  26. \n \n
  27. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-list']\n \n
  28. \n \n
  29. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/$\n [name='livestock_type-detail']\n \n
  30. \n \n
  31. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-detail']\n \n
  32. \n \n
  33. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/delete/$\n [name='livestock_type-delete']\n \n
  34. \n \n
  35. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-delete']\n \n
  36. \n \n
  37. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/trash/$\n [name='livestock_type-trash']\n \n
  38. \n \n
  39. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-trash']\n \n
  40. \n \n
  41. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/$\n [name='livestock_use_type-list']\n \n
  42. \n \n
  43. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-list']\n \n
  44. \n \n
  45. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/$\n [name='livestock_use_type-detail']\n \n
  46. \n \n
  47. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-detail']\n \n
  48. \n \n
  49. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/delete/$\n [name='livestock_use_type-delete']\n \n
  50. \n \n
  51. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-delete']\n \n
  52. \n \n
  53. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/trash/$\n [name='livestock_use_type-trash']\n \n
  54. \n \n
  55. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-trash']\n \n
  56. \n \n
  57. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/$\n [name='livestock_species-list']\n \n
  58. \n \n
  59. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-list']\n \n
  60. \n \n
  61. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/$\n [name='livestock_species-detail']\n \n
  62. \n \n
  63. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-detail']\n \n
  64. \n \n
  65. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/delete/$\n [name='livestock_species-delete']\n \n
  66. \n \n
  67. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-delete']\n \n
  68. \n \n
  69. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/trash/$\n [name='livestock_species-trash']\n \n
  70. \n \n
  71. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-trash']\n \n
  72. \n \n
  73. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n \n [name='api-root']\n \n
  74. \n \n
  75. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n <drf_format_suffix:format>\n [name='api-root']\n \n
  76. \n \n
  77. \n \n search/\n \n \n
  78. \n \n
  79. \n \n swagger/\n [name='schema-swagger-ui']\n \n
  80. \n \n
\n

\n \n The current path, tag/web/api/v1/tag/,\n \n didn\u2019t match any of these.\n

\n \n
\n\n
\n

\n You\u2019re seeing this error because you have DEBUG = True in\n your Django settings file. Change that to False, and Django\n will display a standard 404 page.\n

\n
\n\n\n", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:36:18.386056"}, "22": {"endpoint": "/tag/web/api/v1/tag/", "response_code": 400, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 299, "body_response": "{\"organization\":[\"Invalid pk \\\"8\\\" - object does not exist.\"]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:37:03.759397", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "23": {"endpoint": "/tag/web/api/v1/tag/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 383, "body_response": "{\"id\":1,\"create_date\":\"2025-05-24T09:07:39.682557Z\",\"modify_date\":\"2025-05-24T09:07:39.682557Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"code\":\"256666\",\"status\":\"active\",\"created_by\":2,\"modified_by\":2,\"province\":1,\"city\":1,\"organization\":1}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:37:39.745368", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "24": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:42:00.918202"}, "25": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 400, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 432, "body_response": "{\"birthdate\":[\"Datetime has wrong format. Use one of these formats instead: YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z].\"]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:42:08.159894", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "26": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 500, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 608, "body_response": "\n\n\n \n \n IntegrityError\n at /livestock/web/api/v1/livestock/\n \n \n \n \n\n\n
\n

IntegrityError\n at /livestock/web/api/v1/livestock/

\n
null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n
\n \n\n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n\n \n \n \n \n\n\n \n \n \n \n\n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Request Method:POST
Request URL:http://127.0.0.1:8000/livestock/web/api/v1/livestock/
Django Version:5.0
Exception Type:IntegrityError
Exception Value:
null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n
Exception Location:D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute
Raised during:apps.livestock.web.api.v1.api.LiveStockViewSet
Python Executable:D:\\Software\\env\\Scripts\\python.exe
Python Version:3.12.0
Python Path:
['D:\\\\Project\\\\Rasaddam_Backend',\n 'D:\\\\Software\\\\python-3.12.0\\\\python312.zip',\n 'D:\\\\Software\\\\python-3.12.0\\\\DLLs',\n 'D:\\\\Software\\\\python-3.12.0\\\\Lib',\n 'D:\\\\Software\\\\python-3.12.0',\n 'D:\\\\Software\\\\env',\n 'D:\\\\Software\\\\env\\\\Lib\\\\site-packages',\n 'D:\\\\Software\\\\env\\\\Lib\\\\site-packages\\\\setuptools\\\\_vendor']
Server time:Sat, 24 May 2025 09:12:29 +0000
\n
\n\n\n\n\n
\n

Traceback \n Switch to copy-and-paste view\n

\n
\n
    \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute\n \n\n \n
    \n \n
      \n \n
    1.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    2. \n \n
    3.         self.db.validate_no_broken_transaction()
    4. \n \n
    5.         with self.db.wrap_database_errors:
    6. \n \n
    7.             if params is None:
    8. \n \n
    9.                 # params default might be backend specific.
    10. \n \n
    11.                 return self.cursor.execute(sql)
    12. \n \n
    13.             else:
    14. \n \n
    \n \n
      \n
    1.                 return self.cursor.execute(sql, params)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def _executemany(self, sql, param_list, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ignored_wrapper_args
    (False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n  'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>})
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n The above exception (null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL: Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n) was the direct cause of the following exception:\n \n

  • \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\core\\handlers\\exception.py, line 55, in inner\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         return inner
    3. \n \n
    4.     else:
    5. \n \n
    6. \n \n
    7.         @wraps(get_response)
    8. \n \n
    9.         def inner(request):
    10. \n \n
    11.             try:
    12. \n \n
    \n \n
      \n
    1.                 response = get_response(request)\n                               ^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             except Exception as exc:
    2. \n \n
    3.                 response = response_for_exception(request, exc)
    4. \n \n
    5.             return response
    6. \n \n
    7. \n \n
    8.         return inner
    9. \n \n
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    exc
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    get_response
    <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x000002D97EE33080>>
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock/'>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\core\\handlers\\base.py, line 197, in _get_response\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         if response is None:
    3. \n \n
    4.             wrapped_callback = self.make_view_atomic(callback)
    5. \n \n
    6.             # If it is an asynchronous view, run it in a subthread.
    7. \n \n
    8.             if iscoroutinefunction(wrapped_callback):
    9. \n \n
    10.                 wrapped_callback = async_to_sync(wrapped_callback)
    11. \n \n
    12.             try:
    13. \n \n
    \n \n
      \n
    1.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             except Exception as e:
    2. \n \n
    3.                 response = self.process_exception_by_middleware(e, request)
    4. \n \n
    5.                 if response is None:
    6. \n \n
    7.                     raise
    8. \n \n
    9. \n \n
    10.         # Complain if the view returned None (a common error).
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    callback
    <function LiveStockViewSet at 0x000002D9027FA700>
    callback_args
    ()
    callback_kwargs
    {}
    middleware_method
    <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>>
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock/'>
    response
    None
    self
    <django.core.handlers.wsgi.WSGIHandler object at 0x000002D97EE33080>
    wrapped_callback
    <function LiveStockViewSet at 0x000002D9027FA700>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\views\\decorators\\csrf.py, line 65, in _view_wrapper\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         async def _view_wrapper(request, *args, **kwargs):
    3. \n \n
    4.             return await view_func(request, *args, **kwargs)
    5. \n \n
    6. \n \n
    7.     else:
    8. \n \n
    9. \n \n
    10.         def _view_wrapper(request, *args, **kwargs):
    11. \n \n
    \n \n
      \n
    1.             return view_func(request, *args, **kwargs)\n                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     _view_wrapper.csrf_exempt = True
    3. \n \n
    4. \n \n
    5.     return wraps(view_func)(_view_wrapper)
    6. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    kwargs
    {}
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock/'>
    view_func
    <function LiveStockViewSet at 0x000002D9027FA660>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\viewsets.py, line 125, in view\n \n\n \n
    \n \n
      \n \n
    1.                 setattr(self, method, handler)
    2. \n \n
    3. \n \n
    4.             self.request = request
    5. \n \n
    6.             self.args = args
    7. \n \n
    8.             self.kwargs = kwargs
    9. \n \n
    10. \n \n
    11.             # And continue as usual
    12. \n \n
    \n \n
      \n
    1.             return self.dispatch(request, *args, **kwargs)\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         # take name and docstring from class
    3. \n \n
    4.         update_wrapper(view, cls, updated=())
    5. \n \n
    6. \n \n
    7.         # and possible attributes set by decorators
    8. \n \n
    9.         # like csrf_exempt from dispatch
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    action
    'list'
    actions
    {'get': 'list', 'head': 'list', 'post': 'create'}
    args
    ()
    cls
    <class 'apps.livestock.web.api.v1.api.LiveStockViewSet'>
    handler
    <bound method ListModelMixin.list of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>>
    initkwargs
    {'basename': 'livestock', 'detail': False, 'suffix': 'List'}
    kwargs
    {}
    method
    'head'
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 515, in dispatch\n \n\n \n
    \n \n
      \n \n
    1.                                   self.http_method_not_allowed)
    2. \n \n
    3.             else:
    4. \n \n
    5.                 handler = self.http_method_not_allowed
    6. \n \n
    7. \n \n
    8.             response = handler(request, *args, **kwargs)
    9. \n \n
    10. \n \n
    11.         except Exception as exc:
    12. \n \n
    \n \n
      \n
    1.             response = self.handle_exception(exc)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         self.response = self.finalize_response(request, response, *args, **kwargs)
    3. \n \n
    4.         return self.response
    5. \n \n
    6. \n \n
    7.     def options(self, request, *args, **kwargs):
    8. \n \n
    9.         """
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    handler
    <bound method CreateModelMixin.create of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>>
    kwargs
    {}
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 475, in handle_exception\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         exception_handler = self.get_exception_handler()
    3. \n \n
    4. \n \n
    5.         context = self.get_exception_handler_context()
    6. \n \n
    7.         response = exception_handler(exc, context)
    8. \n \n
    9. \n \n
    10.         if response is None:
    11. \n \n
    \n \n
      \n
    1.             self.raise_uncaught_exception(exc)\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         response.exception = True
    3. \n \n
    4.         return response
    5. \n \n
    6. \n \n
    7.     def raise_uncaught_exception(self, exc):
    8. \n \n
    9.         if settings.DEBUG:
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    context
    {'args': (),\n 'kwargs': {},\n 'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>,\n 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>}
    exc
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    exception_handler
    <function exception_handler at 0x000002D9024BDE40>
    response
    None
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 486, in raise_uncaught_exception\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.     def raise_uncaught_exception(self, exc):
    3. \n \n
    4.         if settings.DEBUG:
    5. \n \n
    6.             request = self.request
    7. \n \n
    8.             renderer_format = getattr(request.accepted_renderer, 'format')
    9. \n \n
    10.             use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')
    11. \n \n
    12.             request.force_plaintext_errors(use_plaintext_traceback)
    13. \n \n
    \n \n
      \n
    1.         raise exc\n             ^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     # Note: Views are made CSRF exempt from within `as_view` as to prevent
    3. \n \n
    4.     # accidental removal of this exemption in cases where `dispatch` needs to
    5. \n \n
    6.     # be overridden.
    7. \n \n
    8.     def dispatch(self, request, *args, **kwargs):
    9. \n \n
    10.         """
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    exc
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    renderer_format
    'json'
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    use_plaintext_traceback
    True
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 512, in dispatch\n \n\n \n
    \n \n
      \n \n
    1.             # Get the appropriate handler method
    2. \n \n
    3.             if request.method.lower() in self.http_method_names:
    4. \n \n
    5.                 handler = getattr(self, request.method.lower(),
    6. \n \n
    7.                                   self.http_method_not_allowed)
    8. \n \n
    9.             else:
    10. \n \n
    11.                 handler = self.http_method_not_allowed
    12. \n \n
    13. \n \n
    \n \n
      \n
    1.             response = handler(request, *args, **kwargs)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         except Exception as exc:
    3. \n \n
    4.             response = self.handle_exception(exc)
    5. \n \n
    6. \n \n
    7.         self.response = self.finalize_response(request, response, *args, **kwargs)
    8. \n \n
    9.         return self.response
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    handler
    <bound method CreateModelMixin.create of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>>
    kwargs
    {}
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\mixins.py, line 19, in create\n \n\n \n
    \n \n
      \n \n
    1. class CreateModelMixin:
    2. \n \n
    3.     """
    4. \n \n
    5.     Create a model instance.
    6. \n \n
    7.     """
    8. \n \n
    9.     def create(self, request, *args, **kwargs):
    10. \n \n
    11.         serializer = self.get_serializer(data=request.data)
    12. \n \n
    13.         serializer.is_valid(raise_exception=True)
    14. \n \n
    \n \n
      \n
    1.         self.perform_create(serializer)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.         headers = self.get_success_headers(serializer.data)
    2. \n \n
    3.         return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
    4. \n \n
    5. \n \n
    6.     def perform_create(self, serializer):
    7. \n \n
    8.         serializer.save()
    9. \n \n
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    kwargs
    {}
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    serializer
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'herd': 1, 'tag': 1, 'type': 1, 'use_type': 1, 'weight_type': 'L', 'species': 1, 'birthdate': '2025-05-13 08:56:51.644360 +00:00', 'gender': 2}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\mixins.py, line 24, in perform_create\n \n\n \n
    \n \n
      \n \n
    1.         serializer = self.get_serializer(data=request.data)
    2. \n \n
    3.         serializer.is_valid(raise_exception=True)
    4. \n \n
    5.         self.perform_create(serializer)
    6. \n \n
    7.         headers = self.get_success_headers(serializer.data)
    8. \n \n
    9.         return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
    10. \n \n
    11. \n \n
    12.     def perform_create(self, serializer):
    13. \n \n
    \n \n
      \n
    1.         serializer.save()\n            ^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def get_success_headers(self, data):
    3. \n \n
    4.         try:
    5. \n \n
    6.             return {'Location': str(data[api_settings.URL_FIELD_NAME])}
    7. \n \n
    8.         except (TypeError, KeyError):
    9. \n \n
    10.             return {}
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    serializer
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'herd': 1, 'tag': 1, 'type': 1, 'use_type': 1, 'weight_type': 'L', 'species': 1, 'birthdate': '2025-05-13 08:56:51.644360 +00:00', 'gender': 2}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\serializers.py, line 210, in save\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         if self.instance is not None:
    3. \n \n
    4.             self.instance = self.update(self.instance, validated_data)
    5. \n \n
    6.             assert self.instance is not None, (
    7. \n \n
    8.                 '`update()` did not return an object instance.'
    9. \n \n
    10.             )
    11. \n \n
    12.         else:
    13. \n \n
    \n \n
      \n
    1.             self.instance = self.create(validated_data)\n                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             assert self.instance is not None, (
    2. \n \n
    3.                 '`create()` did not return an object instance.'
    4. \n \n
    5.             )
    6. \n \n
    7. \n \n
    8.         return self.instance
    9. \n \n
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    kwargs
    {}
    self
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'herd': 1, 'tag': 1, 'type': 1, 'use_type': 1, 'weight_type': 'L', 'species': 1, 'birthdate': '2025-05-13 08:56:51.644360 +00:00', 'gender': 2}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    validated_data
    {'birthdate': datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 'gender': 2,\n 'herd': <Herd: \u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9-12542365>,\n 'species': <LiveStockSpecies: \u0644\u0631\u06cc>,\n 'tag': <Tag: 256666>,\n 'type': <LiveStockType: \u06af\u0648\u0633\u0641\u0646\u062f>,\n 'use_type': <LiveStockUseType: \u0634\u06cc\u0631\u06cc>,\n 'weight_type': 'L'}
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\serializers.py, line 991, in create\n \n\n \n
    \n \n
      \n \n
    1.         info = model_meta.get_field_info(ModelClass)
    2. \n \n
    3.         many_to_many = {}
    4. \n \n
    5.         for field_name, relation_info in info.relations.items():
    6. \n \n
    7.             if relation_info.to_many and (field_name in validated_data):
    8. \n \n
    9.                 many_to_many[field_name] = validated_data.pop(field_name)
    10. \n \n
    11. \n \n
    12.         try:
    13. \n \n
    \n \n
      \n
    1.             instance = ModelClass._default_manager.create(**validated_data)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.         except TypeError:
    2. \n \n
    3.             tb = traceback.format_exc()
    4. \n \n
    5.             msg = (
    6. \n \n
    7.                 'Got a `TypeError` when calling `%s.%s.create()`. '
    8. \n \n
    9.                 'This may be because you have a writable field on the '
    10. \n \n
    11.                 'serializer class that is not a valid argument to '
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ModelClass
    <class 'apps.livestock.models.LiveStock'>
    field_name
    'species'
    info
    FieldInfo(pk=<django.db.models.fields.BigAutoField: id>, fields={'create_date': <django.db.models.fields.DateTimeField: create_date>, 'modify_date': <django.db.models.fields.DateTimeField: modify_date>, 'creator_info': <django.db.models.fields.CharField: creator_info>, 'modifier_info': <django.db.models.fields.CharField: modifier_info>, 'trash': <django.db.models.fields.BooleanField: trash>, 'weight_type': <django.db.models.fields.CharField: weight_type>, 'birthdate': <django.db.models.fields.DateTimeField: birthdate>, 'gender': <django.db.models.fields.IntegerField: gender>}, forward_relations={'created_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: created_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'modified_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: modified_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'herd': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: herd>, related_model=<class 'apps.herd.models.Herd'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'tag': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: tag>, related_model=<class 'apps.tag.models.Tag'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: type>, related_model=<class 'apps.livestock.models.LiveStockType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'use_type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: use_type>, related_model=<class 'apps.livestock.models.LiveStockUseType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'species': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: species>, related_model=<class 'apps.livestock.models.LiveStockSpecies'>, to_many=False, to_field='id', has_through_model=False, reverse=False)}, reverse_relations={}, fields_and_pk={'pk': <django.db.models.fields.BigAutoField: id>, 'id': <django.db.models.fields.BigAutoField: id>, 'create_date': <django.db.models.fields.DateTimeField: create_date>, 'modify_date': <django.db.models.fields.DateTimeField: modify_date>, 'creator_info': <django.db.models.fields.CharField: creator_info>, 'modifier_info': <django.db.models.fields.CharField: modifier_info>, 'trash': <django.db.models.fields.BooleanField: trash>, 'weight_type': <django.db.models.fields.CharField: weight_type>, 'birthdate': <django.db.models.fields.DateTimeField: birthdate>, 'gender': <django.db.models.fields.IntegerField: gender>}, relations={'created_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: created_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'modified_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: modified_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'herd': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: herd>, related_model=<class 'apps.herd.models.Herd'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'tag': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: tag>, related_model=<class 'apps.tag.models.Tag'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: type>, related_model=<class 'apps.livestock.models.LiveStockType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'use_type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: use_type>, related_model=<class 'apps.livestock.models.LiveStockUseType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), '\u2026 <trimmed 4321 bytes string>
    many_to_many
    {}
    relation_info
    RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: species>, related_model=<class 'apps.livestock.models.LiveStockSpecies'>, to_many=False, to_field='id', has_through_model=False, reverse=False)
    self
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'herd': 1, 'tag': 1, 'type': 1, 'use_type': 1, 'weight_type': 'L', 'species': 1, 'birthdate': '2025-05-13 08:56:51.644360 +00:00', 'gender': 2}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    validated_data
    {'birthdate': datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 'gender': 2,\n 'herd': <Herd: \u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9-12542365>,\n 'species': <LiveStockSpecies: \u0644\u0631\u06cc>,\n 'tag': <Tag: 256666>,\n 'type': <LiveStockType: \u06af\u0648\u0633\u0641\u0646\u062f>,\n 'use_type': <LiveStockUseType: \u0634\u06cc\u0631\u06cc>,\n 'weight_type': 'L'}
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\manager.py, line 87, in manager_method\n \n\n \n
    \n \n
      \n \n
    1.         return []
    2. \n \n
    3. \n \n
    4.     @classmethod
    5. \n \n
    6.     def _get_queryset_methods(cls, queryset_class):
    7. \n \n
    8.         def create_method(name, method):
    9. \n \n
    10.             @wraps(method)
    11. \n \n
    12.             def manager_method(self, *args, **kwargs):
    13. \n \n
    \n \n
      \n
    1.                 return getattr(self.get_queryset(), name)(*args, **kwargs)\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.             return manager_method
    3. \n \n
    4. \n \n
    5.         new_methods = {}
    6. \n \n
    7.         for name, method in inspect.getmembers(
    8. \n \n
    9.             queryset_class, predicate=inspect.isfunction
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    kwargs
    {'birthdate': datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 'gender': 2,\n 'herd': <Herd: \u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9-12542365>,\n 'species': <LiveStockSpecies: \u0644\u0631\u06cc>,\n 'tag': <Tag: 256666>,\n 'type': <LiveStockType: \u06af\u0648\u0633\u0641\u0646\u062f>,\n 'use_type': <LiveStockUseType: \u0634\u06cc\u0631\u06cc>,\n 'weight_type': 'L'}
    name
    'create'
    self
    <django.db.models.manager.Manager object at 0x000002D902811280>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\query.py, line 677, in create\n \n\n \n
    \n \n
      \n \n
    1.             raise ValueError(
    2. \n \n
    3.                 "The following fields do not exist in this model: %s"
    4. \n \n
    5.                 % ", ".join(reverse_one_to_one_fields)
    6. \n \n
    7.             )
    8. \n \n
    9. \n \n
    10.         obj = self.model(**kwargs)
    11. \n \n
    12.         self._for_write = True
    13. \n \n
    \n \n
      \n
    1.         obj.save(force_insert=True, using=self.db)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.         return obj
    2. \n \n
    3. \n \n
    4.     async def acreate(self, **kwargs):
    5. \n \n
    6.         return await sync_to_async(self.create)(**kwargs)
    7. \n \n
    8. \n \n
    9.     def _prepare_for_bulk_create(self, objs):
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    kwargs
    {'birthdate': datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 'gender': 2,\n 'herd': <Herd: \u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9-12542365>,\n 'species': <LiveStockSpecies: \u0644\u0631\u06cc>,\n 'tag': <Tag: 256666>,\n 'type': <LiveStockType: \u06af\u0648\u0633\u0641\u0646\u062f>,\n 'use_type': <LiveStockUseType: \u0634\u06cc\u0631\u06cc>,\n 'weight_type': 'L'}
    obj
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    reverse_one_to_one_fields
    frozenset()
    self
    <QuerySet []>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Project\\Rasaddam_Backend\\apps\\livestock\\models.py, line 87, in save\n \n\n \n
    \n \n
      \n \n
    1.     )
    2. \n \n
    3.     gender = models.IntegerField(choices=gender_type, default=1)
    4. \n \n
    5. \n \n
    6.     def __str__(self):
    7. \n \n
    8.         return f'{self.type.name}-{self.species.name}'
    9. \n \n
    10. \n \n
    11.     def save(self, *args, **kwargs):
    12. \n \n
    \n \n
      \n
    1.         super(LiveStock, self).save(*args, **kwargs)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    __class__
    <class 'apps.livestock.models.LiveStock'>
    args
    ()
    kwargs
    {'force_insert': True, 'using': 'default'}
    self
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Project\\Rasaddam_Backend\\apps\\core\\models.py, line 37, in save\n \n\n \n
    \n \n
      \n \n
    1.     def save(self, *args, **kwargs):
    2. \n \n
    3.         user = get_current_user()  # get user object
    4. \n \n
    5.         self.modified_by = user
    6. \n \n
    7.         if not self.creator_info:
    8. \n \n
    9.             self.created_by = user
    10. \n \n
    11.             self.creator_info = user.first_name + ' ' + user.last_name + '-' + user.national_code
    12. \n \n
    13.         self.modifier_info = user.first_name + ' ' + user.last_name + '-' + user.national_code
    14. \n \n
    \n \n
      \n
    1.         super(BaseModel, self).save(*args, **kwargs)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2. \n \n
    3. class MobileTest(BaseModel):
    4. \n \n
    5.     latitude = models.DecimalField(max_digits=22, decimal_places=16)
    6. \n \n
    7.     longitude = models.DecimalField(max_digits=22, decimal_places=16)
    8. \n \n
    9.     count = models.IntegerField(default=0)
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    __class__
    <class 'apps.core.models.BaseModel'>
    args
    ()
    kwargs
    {'force_insert': True, 'using': 'default'}
    self
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    user
    <User: moji \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-None>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 814, in save\n \n\n \n
    \n \n
      \n \n
    1.             for field in self._meta.concrete_fields:
    2. \n \n
    3.                 if not field.primary_key and not hasattr(field, "through"):
    4. \n \n
    5.                     field_names.add(field.attname)
    6. \n \n
    7.             loaded_fields = field_names.difference(deferred_fields)
    8. \n \n
    9.             if loaded_fields:
    10. \n \n
    11.                 update_fields = frozenset(loaded_fields)
    12. \n \n
    13. \n \n
    \n \n
      \n
    1.         self.save_base(\n             ^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             using=using,
    2. \n \n
    3.             force_insert=force_insert,
    4. \n \n
    5.             force_update=force_update,
    6. \n \n
    7.             update_fields=update_fields,
    8. \n \n
    9.         )
    10. \n \n
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    deferred_fields
    set()
    force_insert
    True
    force_update
    False
    self
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    update_fields
    None
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 901, in save_base\n \n\n \n
    \n \n
      \n \n
    1.             parent_inserted = False
    2. \n \n
    3.             if not raw:
    4. \n \n
    5.                 # Validate force insert only when parents are inserted.
    6. \n \n
    7.                 force_insert = self._validate_force_insert(force_insert)
    8. \n \n
    9.                 parent_inserted = self._save_parents(
    10. \n \n
    11.                     cls, using, update_fields, force_insert
    12. \n \n
    13.                 )
    14. \n \n
    \n \n
      \n
    1.             updated = self._save_table(\n                           
      \u2026
    2. \n
    \n \n
      \n \n
    1.                 raw,
    2. \n \n
    3.                 cls,
    4. \n \n
    5.                 force_insert or parent_inserted,
    6. \n \n
    7.                 force_update,
    8. \n \n
    9.                 using,
    10. \n \n
    11.                 update_fields,
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    cls
    <class 'apps.livestock.models.LiveStock'>
    context_manager
    <contextlib._GeneratorContextManager object at 0x000002D902B809B0>
    force_insert
    (<class 'apps.livestock.models.LiveStock'>,)
    force_update
    False
    meta
    <Options for LiveStock>
    origin
    <class 'apps.livestock.models.LiveStock'>
    parent_inserted
    False
    raw
    False
    self
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    update_fields
    None
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 1059, in _save_table\n \n\n \n
    \n \n
      \n \n
    1.                 )
    2. \n \n
    3.             fields = [
    4. \n \n
    5.                 f
    6. \n \n
    7.                 for f in meta.local_concrete_fields
    8. \n \n
    9.                 if not f.generated and (pk_set or f is not meta.auto_field)
    10. \n \n
    11.             ]
    12. \n \n
    13.             returning_fields = meta.db_returning_fields
    14. \n \n
    \n \n
      \n
    1.             results = self._do_insert(\n                            
      \u2026
    2. \n
    \n \n
      \n \n
    1.                 cls._base_manager, using, fields, returning_fields, raw
    2. \n \n
    3.             )
    4. \n \n
    5.             if results:
    6. \n \n
    7.                 for value, field in zip(results[0], returning_fields):
    8. \n \n
    9.                     setattr(self, field.attname, value)
    10. \n \n
    11.         return updated
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    cls
    <class 'apps.livestock.models.LiveStock'>
    fields
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    force_insert
    (<class 'apps.livestock.models.LiveStock'>,)
    force_update
    False
    meta
    <Options for LiveStock>
    non_pks
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    pk_set
    False
    pk_val
    None
    raw
    False
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    update_fields
    None
    updated
    False
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 1100, in _do_insert\n \n\n \n
    \n \n
      \n \n
    1.         return filtered._update(values) > 0
    2. \n \n
    3. \n \n
    4.     def _do_insert(self, manager, using, fields, returning_fields, raw):
    5. \n \n
    6.         """
    7. \n \n
    8.         Do an INSERT. If returning_fields is defined then this method should
    9. \n \n
    10.         return the newly created data for the model.
    11. \n \n
    12.         """
    13. \n \n
    \n \n
      \n
    1.         return manager._insert(\n                     
      \u2026
    2. \n
    \n \n
      \n \n
    1.             [self],
    2. \n \n
    3.             fields=fields,
    4. \n \n
    5.             returning_fields=returning_fields,
    6. \n \n
    7.             using=using,
    8. \n \n
    9.             raw=raw,
    10. \n \n
    11.         )
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    fields
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    manager
    <django.db.models.manager.Manager object at 0x000002D902B80B60>
    raw
    False
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\manager.py, line 87, in manager_method\n \n\n \n
    \n \n
      \n \n
    1.         return []
    2. \n \n
    3. \n \n
    4.     @classmethod
    5. \n \n
    6.     def _get_queryset_methods(cls, queryset_class):
    7. \n \n
    8.         def create_method(name, method):
    9. \n \n
    10.             @wraps(method)
    11. \n \n
    12.             def manager_method(self, *args, **kwargs):
    13. \n \n
    \n \n
      \n
    1.                 return getattr(self.get_queryset(), name)(*args, **kwargs)\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.             return manager_method
    3. \n \n
    4. \n \n
    5.         new_methods = {}
    6. \n \n
    7.         for name, method in inspect.getmembers(
    8. \n \n
    9.             queryset_class, predicate=inspect.isfunction
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ([<LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>],)
    kwargs
    {'fields': [<django.db.models.fields.DateTimeField: create_date>,\n            <django.db.models.fields.DateTimeField: modify_date>,\n            <django.db.models.fields.related.ForeignKey: created_by>,\n            <django.db.models.fields.related.ForeignKey: modified_by>,\n            <django.db.models.fields.CharField: creator_info>,\n            <django.db.models.fields.CharField: modifier_info>,\n            <django.db.models.fields.BooleanField: trash>,\n            <django.db.models.fields.related.ForeignKey: herd>,\n            <django.db.models.fields.related.ForeignKey: tag>,\n            <django.db.models.fields.related.ForeignKey: type>,\n            <django.db.models.fields.related.ForeignKey: use_type>,\n            <django.db.models.fields.CharField: weight_type>,\n            <django.db.models.fields.related.ForeignKey: species>,\n            <django.db.models.fields.DateTimeField: birthdate>,\n            <django.db.models.fields.IntegerField: gender>],\n 'raw': False,\n 'returning_fields': [<django.db.models.fields.BigAutoField: id>],\n 'using': 'default'}
    name
    '_insert'
    self
    <django.db.models.manager.Manager object at 0x000002D902B80B60>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\query.py, line 1845, in _insert\n \n\n \n
    \n \n
      \n \n
    1.         query = sql.InsertQuery(
    2. \n \n
    3.             self.model,
    4. \n \n
    5.             on_conflict=on_conflict,
    6. \n \n
    7.             update_fields=update_fields,
    8. \n \n
    9.             unique_fields=unique_fields,
    10. \n \n
    11.         )
    12. \n \n
    13.         query.insert_values(fields, objs, raw=raw)
    14. \n \n
    \n \n
      \n
    1.         return query.get_compiler(using=using).execute_sql(returning_fields)\n                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     _insert.alters_data = True
    3. \n \n
    4.     _insert.queryset_only = False
    5. \n \n
    6. \n \n
    7.     def _batched_insert(
    8. \n \n
    9.         self,
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    fields
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    objs
    [<LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>]
    on_conflict
    None
    query
    <django.db.models.sql.subqueries.InsertQuery object at 0x000002D902B80710>
    raw
    False
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    <QuerySet []>
    unique_fields
    None
    update_fields
    None
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\sql\\compiler.py, line 1822, in execute_sql\n \n\n \n
    \n \n
      \n \n
    1.             and len(self.query.objs) != 1
    2. \n \n
    3.             and not self.connection.features.can_return_rows_from_bulk_insert
    4. \n \n
    5.         )
    6. \n \n
    7.         opts = self.query.get_meta()
    8. \n \n
    9.         self.returning_fields = returning_fields
    10. \n \n
    11.         with self.connection.cursor() as cursor:
    12. \n \n
    13.             for sql, params in self.as_sql():
    14. \n \n
    \n \n
      \n
    1.                 cursor.execute(sql, params)\n                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             if not self.returning_fields:
    2. \n \n
    3.                 return []
    4. \n \n
    5.             if (
    6. \n \n
    7.                 self.connection.features.can_return_rows_from_bulk_insert
    8. \n \n
    9.                 and len(self.query.objs) > 1
    10. \n \n
    11.             ):
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    cursor
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    opts
    <Options for LiveStock>
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    <SQLInsertCompiler model=LiveStock connection=<DatabaseWrapper vendor='postgresql' alias='default'> using='default'>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 122, in execute\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2. \n \n
    3. class CursorDebugWrapper(CursorWrapper):
    4. \n \n
    5.     # XXX callproc isn't instrumented at this time.
    6. \n \n
    7. \n \n
    8.     def execute(self, sql, params=None):
    9. \n \n
    10.         with self.debug_sql(sql, params, use_last_executed_query=True):
    11. \n \n
    \n \n
      \n
    1.             return super().execute(sql, params)\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def executemany(self, sql, param_list):
    3. \n \n
    4.         with self.debug_sql(sql, param_list, many=True):
    5. \n \n
    6.             return super().executemany(sql, param_list)
    7. \n \n
    8. \n \n
    9.     @contextmanager
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    __class__
    <class 'django.db.backends.utils.CursorDebugWrapper'>
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 79, in execute\n \n\n \n
    \n \n
      \n \n
    1.             elif kparams is None:
    2. \n \n
    3.                 return self.cursor.callproc(procname, params)
    4. \n \n
    5.             else:
    6. \n \n
    7.                 params = params or ()
    8. \n \n
    9.                 return self.cursor.callproc(procname, params, kparams)
    10. \n \n
    11. \n \n
    12.     def execute(self, sql, params=None):
    13. \n \n
    \n \n
      \n
    1.         return self._execute_with_wrappers(\n                   
      \u2026
    2. \n
    \n \n
      \n \n
    1.             sql, params, many=False, executor=self._execute
    2. \n \n
    3.         )
    4. \n \n
    5. \n \n
    6.     def executemany(self, sql, param_list):
    7. \n \n
    8.         return self._execute_with_wrappers(
    9. \n \n
    10.             sql, param_list, many=True, executor=self._executemany
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 92, in _execute_with_wrappers\n \n\n \n
    \n \n
      \n \n
    1.             sql, param_list, many=True, executor=self._executemany
    2. \n \n
    3.         )
    4. \n \n
    5. \n \n
    6.     def _execute_with_wrappers(self, sql, params, many, executor):
    7. \n \n
    8.         context = {"connection": self.db, "cursor": self}
    9. \n \n
    10.         for wrapper in reversed(self.db.execute_wrappers):
    11. \n \n
    12.             executor = functools.partial(wrapper, executor)
    13. \n \n
    \n \n
      \n
    1.         return executor(sql, params, many, context)\n                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def _execute(self, sql, params, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    context
    {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>}
    executor
    <bound method CursorWrapper._execute of <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>>
    many
    False
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 100, in _execute\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.     def _execute(self, sql, params, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    12.         self.db.validate_no_broken_transaction()
    13. \n \n
    \n \n
      \n
    1.         with self.db.wrap_database_errors:\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             if params is None:
    2. \n \n
    3.                 # params default might be backend specific.
    4. \n \n
    5.                 return self.cursor.execute(sql)
    6. \n \n
    7.             else:
    8. \n \n
    9.                 return self.cursor.execute(sql, params)
    10. \n \n
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ignored_wrapper_args
    (False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n  'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>})
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\utils.py, line 91, in __exit__\n \n\n \n
    \n \n
      \n \n
    1.             db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__)
    2. \n \n
    3.             if issubclass(exc_type, db_exc_type):
    4. \n \n
    5.                 dj_exc_value = dj_exc_type(*exc_value.args)
    6. \n \n
    7.                 # Only set the 'errors_occurred' flag for errors that may make
    8. \n \n
    9.                 # the connection unusable.
    10. \n \n
    11.                 if dj_exc_type not in (DataError, IntegrityError):
    12. \n \n
    13.                     self.wrapper.errors_occurred = True
    14. \n \n
    \n \n
      \n
    1.                 raise dj_exc_value.with_traceback(traceback) from exc_value\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def __call__(self, func):
    3. \n \n
    4.         # Note that we are intentionally not using @wraps here for performance
    5. \n \n
    6.         # reasons. Refs #21109.
    7. \n \n
    8.         def inner(*args, **kwargs):
    9. \n \n
    10.             with self:
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    db_exc_type
    <class 'psycopg2.IntegrityError'>
    dj_exc_type
    <class 'django.db.utils.IntegrityError'>
    dj_exc_value
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    exc_type
    <class 'psycopg2.errors.NotNullViolation'>
    exc_value
    NotNullViolation('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    self
    <django.db.utils.DatabaseErrorWrapper object at 0x000002D902C90350>
    traceback
    <traceback object at 0x000002D902B4D580>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute\n \n\n \n
    \n \n
      \n \n
    1.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    2. \n \n
    3.         self.db.validate_no_broken_transaction()
    4. \n \n
    5.         with self.db.wrap_database_errors:
    6. \n \n
    7.             if params is None:
    8. \n \n
    9.                 # params default might be backend specific.
    10. \n \n
    11.                 return self.cursor.execute(sql)
    12. \n \n
    13.             else:
    14. \n \n
    \n \n
      \n
    1.                 return self.cursor.execute(sql, params)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def _executemany(self, sql, param_list, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ignored_wrapper_args
    (False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n  'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>})
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n
\n
\n\n
\n
\n \n \n \n \n \n

\n \n
\n
\n\n
\n\n\n
\n

Request information

\n\n\n \n

USER

\n

moji \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-None

\n \n\n

GET

\n \n

No GET data

\n \n\n

POST

\n \n

No POST data

\n \n\n

FILES

\n \n

No FILES data

\n \n\n

COOKIES

\n \n

No cookie data

\n \n\n

META

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
VariableValue
ALLUSERSPROFILE
'C:\\\\ProgramData'
APPCODE_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\appcode.vmoptions'
APPDATA
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming'
CLION_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\clion.vmoptions'
COMMONPROGRAMFILES
'C:\\\\Program Files\\\\Common Files'
COMMONPROGRAMFILES(X86)
'C:\\\\Program Files (x86)\\\\Common Files'
COMMONPROGRAMW6432
'C:\\\\Program Files\\\\Common Files'
COMPUTERNAME
'DESKTOP-77GDGLN'
COMSPEC
'C:\\\\Windows\\\\system32\\\\cmd.exe'
CONTENT_LENGTH
'187'
CONTENT_TYPE
'application/json'
DATAGRIP_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\datagrip.vmoptions'
DATASPELL_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\dataspell.vmoptions'
DEVECOSTUDIO_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\devecostudio.vmoptions'
DJANGO_SETTINGS_MODULE
'Rasaddam_Backend.settings'
DRIVERDATA
'C:\\\\Windows\\\\System32\\\\Drivers\\\\DriverData'
EFC_9236
'1'
FPS_BROWSER_APP_PROFILE_STRING
'Internet Explorer'
FPS_BROWSER_USER_PROFILE_STRING
'Default'
GATEWAY_INTERFACE
'CGI/1.1'
GATEWAY_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\gateway.vmoptions'
GOLAND_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\goland.vmoptions'
HOMEDRIVE
'C:'
HOMEPATH
'\\\\Users\\\\Housh8'
HTTP_ACCEPT
'*/*'
HTTP_ACCEPT_ENCODING
'gzip, deflate, br'
HTTP_AUTHORIZATION
('Bearer '\n 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzQ4MTUwNTc5LCJpYXQiOjE3NDgwNjQxNzksImp0aSI6ImY1NjA3MGQ5M2Q3ZTQ2OWY5YjUzZTBiNWU0Yzg4ZGI4IiwidXNlcl9pZCI6MiwibmFtZSI6Im1vamkiLCJtb2JpbGUiOiIwOTM4OTY1NyIsIm5hdGlvbmFsX2NvZGUiOiI0MDYxMDgwNTk4In0.FKrYU38zStPGnrzgoDzvAd5EAiCDuoAFrHPXncAknok')
HTTP_CACHE_CONTROL
'no-cache'
HTTP_CONNECTION
'keep-alive'
HTTP_HOST
'127.0.0.1:8000'
HTTP_POSTMAN_TOKEN
'********************'
HTTP_USER_AGENT
'PostmanRuntime/7.44.0'
IDEA_INITIAL_DIRECTORY
'C:\\\\Users\\\\Housh8\\\\Desktop'
IDEA_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\idea.vmoptions'
JETBRAINSCLIENT_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\jetbrainsclient.vmoptions'
JETBRAINS_CLIENT_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\jetbrains_client.vmoptions'
LOCALAPPDATA
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local'
LOGONSERVER
'\\\\\\\\DESKTOP-77GDGLN'
NODEJS
'C:\\\\ProgramData\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Node.js'
NUMBER_OF_PROCESSORS
'4'
NVM_HOME
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm'
NVM_SYMLINK
'C:\\\\nvm4w\\\\nodejs'
ONEDRIVE
'C:\\\\Users\\\\Housh8\\\\OneDrive'
OS
'Windows_NT'
PATH
('D:\\\\Software\\\\env\\\\Scripts;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Program '\n 'Files\\\\Git\\\\cmd;C:\\\\Program '\n 'Files\\\\nodejs\\\\;D:\\\\Software\\\\python-3.12.0\\\\Scripts\\\\;D:\\\\Software\\\\python-3.12.0\\\\;D:\\\\Software\\\\python\\\\Scripts\\\\;D:\\\\Software\\\\python\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Launcher\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Microsoft '\n 'VS '\n 'Code\\\\bin;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming\\\\npm')
PATHEXT
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
PATH_INFO
'/livestock/web/api/v1/livestock/'
PHPSTORM_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\phpstorm.vmoptions'
PROCESSOR_ARCHITECTURE
'AMD64'
PROCESSOR_IDENTIFIER
'Intel64 Family 6 Model 158 Stepping 9, GenuineIntel'
PROCESSOR_LEVEL
'6'
PROCESSOR_REVISION
'9e09'
PROGRAMDATA
'C:\\\\ProgramData'
PROGRAMFILES
'C:\\\\Program Files'
PROGRAMFILES(X86)
'C:\\\\Program Files (x86)'
PROGRAMW6432
'C:\\\\Program Files'
PROMPT
'(env) $P$G'
PSMODULEPATH
('C:\\\\Program '\n 'Files\\\\WindowsPowerShell\\\\Modules;C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\Modules')
PUBLIC
'C:\\\\Users\\\\Public'
PYCHARM_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\pycharm.vmoptions'
QUERY_STRING
''
REMOTE_ADDR
'127.0.0.1'
REMOTE_HOST
''
REQUEST_METHOD
'POST'
RIDER_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\rider.vmoptions'
RUBYMINE_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\rubymine.vmoptions'
RUN_MAIN
'true'
RUSTROVER_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\RustRover.vmoptions'
SCRIPT_NAME
''
SERVER_NAME
'DESKTOP-77GDGLN'
SERVER_PORT
'8000'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SOFTWARE
'WSGIServer/0.2'
SESSIONNAME
'Console'
STUDIO_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\studio.vmoptions'
SYSTEMDRIVE
'C:'
SYSTEMROOT
'C:\\\\Windows'
TEMP
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Temp'
TERMINAL_EMULATOR
'JetBrains-JediTerm'
TERM_SESSION_ID
'47718519-d082-4e63-ad0c-0703ee64fd3f'
TMP
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Temp'
USERDOMAIN
'DESKTOP-77GDGLN'
USERDOMAIN_ROAMINGPROFILE
'DESKTOP-77GDGLN'
USERNAME
'Housh8'
USERPROFILE
'C:\\\\Users\\\\Housh8'
VIRTUAL_ENV
'D:\\\\Software\\\\env'
WEBIDE_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\webide.vmoptions'
WEBSTORM_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\webstorm.vmoptions'
WINDIR
'C:\\\\Windows'
_OLD_VIRTUAL_PATH
('C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Program '\n 'Files\\\\Git\\\\cmd;C:\\\\Program '\n 'Files\\\\nodejs\\\\;D:\\\\Software\\\\python-3.12.0\\\\Scripts\\\\;D:\\\\Software\\\\python-3.12.0\\\\;D:\\\\Software\\\\python\\\\Scripts\\\\;D:\\\\Software\\\\python\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Launcher\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Microsoft '\n 'VS '\n 'Code\\\\bin;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming\\\\npm')
_OLD_VIRTUAL_PROMPT
'$P$G'
__INTELLIJ_COMMAND_HISTFILE__
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\JetBrains\\\\PyCharm2021.3\\\\terminal\\\\history\\\\Rasaddam_Backend-history'
wsgi.errors
<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
wsgi.file_wrapper
<class 'wsgiref.util.FileWrapper'>
wsgi.input
<django.core.handlers.wsgi.LimitedStream object at 0x000002D902954C10>
wsgi.multiprocess
False
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
\n\n\n

Settings

\n

Using settings module Rasaddam_Backend.settings

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
SettingValue
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
[]
ALLOWED_HOSTS
['localhost', '127.0.0.1', 'https://rasadyar.net/', 'https://localhost:9200']
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS
'********************'
AUTH_USER_MODEL
'authentication.User'
BASE_DIR
WindowsPath('D:/Project/Rasaddam_Backend')
CACHES
{'default': {'BACKEND': 'django_redis.cache.RedisCache',\n             'KEY_PREFIX': '********************',\n             'LOCATION': 'redis://:ydnW4hwzuDRYcTX3FWCHgQ1f@apo.liara.cloud:33740/0',\n             'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}},\n 'memcache': {'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',\n              'LOCATION': '127.0.0.1:11211'}}
CACHE_MIDDLEWARE_ALIAS
'default'
CACHE_MIDDLEWARE_KEY_PREFIX
'********************'
CACHE_MIDDLEWARE_SECONDS
600
CORS_ALLOWED_ORIGINS
('http://localhost:8080',\n 'http://127.0.0.1:8080',\n 'http://127.0.0.1:3000',\n 'http://localhost:3000',\n 'https://rasadyar.net')
CORS_ORIGIN_ALLOW_ALL
True
CORS_ORIGIN_WHITELIST
('http://localhost:8080',\n 'http://127.0.0.1:8080',\n 'http://127.0.0.1:3000',\n 'http://localhost:3000',\n 'https://rasadyar.net')
CSRF_COOKIE_AGE
31449600
CSRF_COOKIE_DOMAIN
None
CSRF_COOKIE_HTTPONLY
False
CSRF_COOKIE_NAME
'csrftoken'
CSRF_COOKIE_PATH
'/'
CSRF_COOKIE_SAMESITE
'Lax'
CSRF_COOKIE_SECURE
False
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME
'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS
[]
CSRF_USE_SESSIONS
False
DATABASES
{'default': {'ATOMIC_REQUESTS': False,\n             'AUTOCOMMIT': True,\n             'CONN_HEALTH_CHECKS': False,\n             'CONN_MAX_AGE': 0,\n             'ENGINE': 'django.db.backends.postgresql_psycopg2',\n             'HOST': 'monte-rosa.liara.cloud',\n             'NAME': 'postgres',\n             'OPTIONS': {},\n             'PASSWORD': '********************',\n             'PORT': '32718',\n             'TEST': {'CHARSET': None,\n                      'COLLATION': None,\n                      'MIGRATE': True,\n                      'MIRROR': None,\n                      'NAME': None},\n             'TIME_ZONE': None,\n             'USER': 'root'}}
DATABASE_ROUTERS
[]
DATA_UPLOAD_MAX_MEMORY_SIZE
50242880
DATA_UPLOAD_MAX_NUMBER_FIELDS
1000
DATA_UPLOAD_MAX_NUMBER_FILES
100
DATETIME_FORMAT
'%Y-%m-%d %H:%M:%S'
DATETIME_INPUT_FORMATS
['%Y-%m-%d %H:%M:%S',\n '%Y-%m-%d %H:%M:%S.%f',\n '%Y-%m-%d %H:%M',\n '%m/%d/%Y %H:%M:%S',\n '%m/%d/%Y %H:%M:%S.%f',\n '%m/%d/%Y %H:%M',\n '%m/%d/%y %H:%M:%S',\n '%m/%d/%y %H:%M:%S.%f',\n '%m/%d/%y %H:%M']
DATE_FORMAT
'N j, Y'
DATE_INPUT_FORMATS
['%Y-%m-%d',\n '%m/%d/%Y',\n '%m/%d/%y',\n '%b %d %Y',\n '%b %d, %Y',\n '%d %b %Y',\n '%d %b, %Y',\n '%B %d %Y',\n '%B %d, %Y',\n '%d %B %Y',\n '%d %B, %Y']
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DECIMAL_SEPARATOR
'.'
DEFAULT_AUTO_FIELD
'django.db.models.BigAutoField'
DEFAULT_CHARSET
'utf-8'
DEFAULT_EXCEPTION_REPORTER
'django.views.debug.ExceptionReporter'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISALLOWED_USER_AGENTS
[]
ELASTICSEARCH_DSL
{'default': {'hosts': 'http://monte-rosa.liara.cloud:31157',\n             'http_auth': ('elastic', 'uYkiQ860vLW8DIbWpNjqtz2B')}}
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'localhost'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
''
EMAIL_PORT
25
EMAIL_SSL_CERTFILE
None
EMAIL_SSL_KEYFILE
'********************'
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_TIMEOUT
None
EMAIL_USE_LOCALTIME
False
EMAIL_USE_SSL
False
EMAIL_USE_TLS
False
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
['django.core.files.uploadhandler.MemoryFileUploadHandler',\n 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
420
FILE_UPLOAD_TEMP_DIR
None
FIRST_DAY_OF_WEEK
0
FIXTURE_DIRS
[]
FORCE_SCRIPT_NAME
None
FORMAT_MODULE_PATH
None
FORMS_URLFIELD_ASSUME_HTTPS
False
FORM_RENDERER
'django.forms.renderers.DjangoTemplates'
IGNORABLE_404_URLS
[]
INSTALLED_APPS
['django.contrib.admin',\n 'django.contrib.auth',\n 'django.contrib.contenttypes',\n 'django.contrib.sessions',\n 'django.contrib.messages',\n 'django.contrib.staticfiles',\n 'django_elasticsearch_dsl',\n 'django_elasticsearch_dsl_drf',\n 'rest_framework',\n 'corsheaders',\n 'rest_framework_simplejwt',\n 'rest_framework_simplejwt.token_blacklist',\n 'apps.authentication.apps.AuthenticationConfig',\n 'apps.authorization.apps.AuthorizationConfig',\n 'apps.captcha_app.apps.CaptchaAppConfig',\n 'apps.core.apps.CoreConfig',\n 'apps.herd.apps.HerdAppConfig',\n 'apps.livestock.apps.LivestockConfig',\n 'apps.pos_machine.apps.PosMachineConfig',\n 'apps.tag.apps.TagConfig',\n 'apps.warehouse.apps.WarehouseConfig',\n 'apps.search.apps.SearchConfig',\n 'apps.log.apps.LogConfig',\n 'rest_captcha',\n 'captcha',\n 'drf_yasg']
INTERNAL_IPS
[]
LANGUAGES
[('af', 'Afrikaans'),\n ('ar', 'Arabic'),\n ('ar-dz', 'Algerian Arabic'),\n ('ast', 'Asturian'),\n ('az', 'Azerbaijani'),\n ('bg', 'Bulgarian'),\n ('be', 'Belarusian'),\n ('bn', 'Bengali'),\n ('br', 'Breton'),\n ('bs', 'Bosnian'),\n ('ca', 'Catalan'),\n ('ckb', 'Central Kurdish (Sorani)'),\n ('cs', 'Czech'),\n ('cy', 'Welsh'),\n ('da', 'Danish'),\n ('de', 'German'),\n ('dsb', 'Lower Sorbian'),\n ('el', 'Greek'),\n ('en', 'English'),\n ('en-au', 'Australian English'),\n ('en-gb', 'British English'),\n ('eo', 'Esperanto'),\n ('es', 'Spanish'),\n ('es-ar', 'Argentinian Spanish'),\n ('es-co', 'Colombian Spanish'),\n ('es-mx', 'Mexican Spanish'),\n ('es-ni', 'Nicaraguan Spanish'),\n ('es-ve', 'Venezuelan Spanish'),\n ('et', 'Estonian'),\n ('eu', 'Basque'),\n ('fa', 'Persian'),\n ('fi', 'Finnish'),\n ('fr', 'French'),\n ('fy', 'Frisian'),\n ('ga', 'Irish'),\n ('gd', 'Scottish Gaelic'),\n ('gl', 'Galician'),\n ('he', 'Hebrew'),\n ('hi', 'Hindi'),\n ('hr', 'Croatian'),\n ('hsb', 'Upper Sorbian'),\n ('hu', 'Hungarian'),\n ('hy', 'Armenian'),\n ('ia', 'Interlingua'),\n ('id', 'Indonesian'),\n ('ig', 'Igbo'),\n ('io', 'Ido'),\n ('is', 'Icelandic'),\n ('it', 'Italian'),\n ('ja', 'Japanese'),\n ('ka', 'Georgian'),\n ('kab', 'Kabyle'),\n ('kk', 'Kazakh'),\n ('km', 'Khmer'),\n ('kn', 'Kannada'),\n ('ko', 'Korean'),\n ('ky', 'Kyrgyz'),\n ('lb', 'Luxembourgish'),\n ('lt', 'Lithuanian'),\n ('lv', 'Latvian'),\n ('mk', 'Macedonian'),\n ('ml', 'Malayalam'),\n ('mn', 'Mongolian'),\n ('mr', 'Marathi'),\n ('ms', 'Malay'),\n ('my', 'Burmese'),\n ('nb', 'Norwegian Bokm\u00e5l'),\n ('ne', 'Nepali'),\n ('nl', 'Dutch'),\n ('nn', 'Norwegian Nynorsk'),\n ('os', 'Ossetic'),\n ('pa', 'Punjabi'),\n ('pl', 'Polish'),\n ('pt', 'Portuguese'),\n ('pt-br', 'Brazilian Portuguese'),\n ('ro', 'Romanian'),\n ('ru', 'Russian'),\n ('sk', 'Slovak'),\n ('sl', 'Slovenian'),\n ('sq', 'Albanian'),\n ('sr', 'Serbian'),\n ('sr-latn', 'Serbian Latin'),\n ('sv', 'Swedish'),\n ('sw', 'Swahili'),\n ('ta', 'Tamil'),\n ('te', 'Telugu'),\n ('tg', 'Tajik'),\n ('th', 'Thai'),\n ('tk', 'Turkmen'),\n ('tr', 'Turkish'),\n ('tt', 'Tatar'),\n ('udm', 'Udmurt'),\n ('ug', 'Uyghur'),\n ('uk', 'Ukrainian'),\n ('ur', 'Urdu'),\n ('uz', 'Uzbek'),\n ('vi', 'Vietnamese'),\n ('zh-hans', 'Simplified Chinese'),\n ('zh-hant', 'Traditional Chinese')]
LANGUAGES_BIDI
['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ug', 'ur']
LANGUAGE_CODE
'en-us'
LANGUAGE_COOKIE_AGE
None
LANGUAGE_COOKIE_DOMAIN
None
LANGUAGE_COOKIE_HTTPONLY
False
LANGUAGE_COOKIE_NAME
'django_language'
LANGUAGE_COOKIE_PATH
'/'
LANGUAGE_COOKIE_SAMESITE
None
LANGUAGE_COOKIE_SECURE
False
LOCALE_PATHS
[]
LOGGING
{}
LOGGING_CONFIG
'logging.config.dictConfig'
LOGIN_REDIRECT_URL
'/accounts/profile/'
LOGIN_URL
'rest_framework:login'
LOGOUT_REDIRECT_URL
None
LOGOUT_URL
'rest_framework:logout'
MANAGERS
[]
MEDIA_ROOT
''
MEDIA_URL
'/'
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE
['django.middleware.security.SecurityMiddleware',\n 'django.contrib.sessions.middleware.SessionMiddleware',\n 'django.middleware.common.CommonMiddleware',\n 'django.middleware.csrf.CsrfViewMiddleware',\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n 'django.contrib.messages.middleware.MessageMiddleware',\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\n 'crum.CurrentRequestUserMiddleware',\n 'apps.log.middlewares.SaveLog']
MIGRATION_MODULES
{}
MONGODB_DATABASES
{'default': {'host': '', 'name': 'mongodb', 'tz_aware': True}}
MONTH_DAY_FORMAT
'F j'
NUMBER_GROUPING
0
PASSWORD_HASHERS
'********************'
PASSWORD_RESET_TIMEOUT
'********************'
PREPEND_WWW
False
REST_CAPTCHA
{'CAPTCHA_BACKGROUND_COLOR': '#ffffff',\n 'CAPTCHA_CACHE': 'default',\n 'CAPTCHA_CACHE_KEY': '********************',\n 'CAPTCHA_FONT_SIZE': 35,\n 'CAPTCHA_FOREGROUND_COLOR': '#000000',\n 'CAPTCHA_IMAGE_SIZE': (90, 20),\n 'CAPTCHA_LENGTH': 6,\n 'CAPTCHA_LETTER_ROTATION': (-35, 35),\n 'CAPTCHA_TIMEOUT': 300,\n 'FILTER_FUNCTION': 'rest_captcha.captcha.filter_default',\n 'NOISE_FUNCTION': 'apps.captcha_app.api.v1.serializers.noise_default'}
REST_FRAMEWORK
{'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_simplejwt.authentication.JWTAuthentication',\n                                    'rest_framework.authentication.SessionAuthentication',\n                                    'rest_framework.authentication.BasicAuthentication'),\n 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',\n 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),\n 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema',\n 'PAGE_SIZE': 25}
ROOT_URLCONF
'Rasaddam_Backend.urls'
SECRET_KEY
'********************'
SECRET_KEY_FALLBACKS
'********************'
SECURE_CONTENT_TYPE_NOSNIFF
True
SECURE_CROSS_ORIGIN_OPENER_POLICY
'same-origin'
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
SECURE_HSTS_PRELOAD
False
SECURE_HSTS_SECONDS
0
SECURE_PROXY_SSL_HEADER
('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_REDIRECT_EXEMPT
[]
SECURE_REFERRER_POLICY
'same-origin'
SECURE_SSL_HOST
None
SECURE_SSL_REDIRECT
False
SERVER_EMAIL
'root@localhost'
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_HTTPONLY
True
SESSION_COOKIE_NAME
'sessionid'
SESSION_COOKIE_PATH
'/'
SESSION_COOKIE_SAMESITE
'Lax'
SESSION_COOKIE_SECURE
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
False
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE
'Rasaddam_Backend.settings'
SHORT_DATETIME_FORMAT
'm/d/Y P'
SHORT_DATE_FORMAT
'm/d/Y'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS
[]
SIMPLE_JWT
{'ACCESS_TOKEN_LIFETIME': '********************',\n 'ALGORITHM': 'HS256',\n 'AUDIENCE': None,\n 'AUTH_HEADER_NAME': 'HTTP_AUTHORIZATION',\n 'AUTH_HEADER_TYPES': ('Bearer',),\n 'AUTH_TOKEN_CLASSES': '********************',\n 'BLACKLIST_AFTER_ROTATION': False,\n 'ISSUER': None,\n 'JSON_ENCODER': None,\n 'JTI_CLAIM': 'jti',\n 'JWK_URL': None,\n 'LEEWAY': 0,\n 'REFRESH_TOKEN_LIFETIME': '********************',\n 'ROTATE_REFRESH_TOKENS': '********************',\n 'SIGNING_KEY': '********************',\n 'SLIDING_TOKEN_LIFETIME': '********************',\n 'SLIDING_TOKEN_OBTAIN_SERIALIZER': '********************',\n 'SLIDING_TOKEN_REFRESH_EXP_CLAIM': '********************',\n 'SLIDING_TOKEN_REFRESH_LIFETIME': '********************',\n 'SLIDING_TOKEN_REFRESH_SERIALIZER': '********************',\n 'TOKEN_BLACKLIST_SERIALIZER': '********************',\n 'TOKEN_OBTAIN_SERIALIZER': '********************',\n 'TOKEN_REFRESH_SERIALIZER': '********************',\n 'TOKEN_TYPE_CLAIM': '********************',\n 'TOKEN_USER_CLASS': '********************',\n 'TOKEN_VERIFY_SERIALIZER': '********************',\n 'UPDATE_LAST_LOGIN': False,\n 'USER_AUTHENTICATION_RULE': 'rest_framework_simplejwt.authentication.default_user_authentication_rule',\n 'USER_ID_CLAIM': 'user_id',\n 'USER_ID_FIELD': 'id',\n 'VERIFYING_KEY': '********************'}
STATICFILES_DIRS
[]
STATICFILES_FINDERS
['django.contrib.staticfiles.finders.FileSystemFinder',\n 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT
None
STATIC_URL
'/static/'
STORAGES
{'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'},\n 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}}
SWAGGER_SETTINGS
{'SECURITY_DEFINITIONS': {'Bearer': {'in': 'header',\n                                     'name': 'Authorization',\n                                     'type': 'apiKey'},\n                          'basic': {'type': 'basic'}},\n 'USE_SESSION_AUTH': True}
TEMPLATES
[{'APP_DIRS': True,\n  'BACKEND': 'django.template.backends.django.DjangoTemplates',\n  'DIRS': [],\n  'OPTIONS': {'context_processors': ['django.template.context_processors.request',\n                                     'django.contrib.auth.context_processors.auth',\n                                     'django.contrib.messages.context_processors.messages']}}]
TEST_NON_SERIALIZED_APPS
[]
TEST_RUNNER
'django.test.runner.DiscoverRunner'
THOUSAND_SEPARATOR
','
TIME_FORMAT
'P'
TIME_INPUT_FORMATS
['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE
'UTC'
USE_I18N
True
USE_THOUSAND_SEPARATOR
False
USE_TZ
True
USE_X_FORWARDED_HOST
False
USE_X_FORWARDED_PORT
False
WSGI_APPLICATION
'Rasaddam_Backend.wsgi.application'
X_FRAME_OPTIONS
'DENY'
YEAR_MONTH_FORMAT
'F Y'
\n\n
\n\n
\n

\n You\u2019re seeing this error because you have DEBUG = True in your\n Django settings file. Change that to False, and Django will\n display a standard page generated by the handler for this status code.\n

\n
\n\n\n\n", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:42:29.332824", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "27": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 475, "body_response": "{\"id\":3,\"create_date\":\"2025-05-24T09:13:20.509502Z\",\"modify_date\":\"2025-05-24T09:13:20.509502Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"weight_type\":\"L\",\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2,\"created_by\":2,\"modified_by\":2,\"herd\":1,\"tag\":1,\"type\":1,\"use_type\":1,\"species\":1}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:43:20.556585", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "28": {"endpoint": "/livestock/web/api/v1/livestock/1/", "response_code": 404, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 277, "body_response": "{\"detail\":\"No LiveStock matches the given query.\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:43:48.972673", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "29": {"endpoint": "/livestock/web/api/v1/livestock/1/", "response_code": 404, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 269, "body_response": "{\"detail\":\"No LiveStock matches the given query.\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:43:56.610305", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "30": {"endpoint": "/livestock/web/api/v1/livestock/3/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 470, "body_response": "{\"id\":3,\"create_date\":\"2025-05-24T09:13:20.509502Z\",\"modify_date\":\"2025-05-24T09:14:18.011228Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"weight_type\":\"L\",\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2,\"created_by\":2,\"modified_by\":2,\"herd\":1,\"tag\":1,\"type\":1,\"use_type\":1,\"species\":1}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:44:18.082549", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "31": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1214, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"create_date\":\"2025-05-24T09:13:20.509502Z\",\"modify_date\":\"2025-05-24T09:14:18.011228Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"weight_type\":\"L\",\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2,\"created_by\":2,\"modified_by\":2,\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"create_date\":\"2025-05-24T09:07:39.682557Z\",\"modify_date\":\"2025-05-24T09:07:39.682557Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"code\":\"256666\",\"status\":\"active\",\"created_by\":2,\"modified_by\":2,\"province\":1,\"city\":1,\"organization\":1},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"}}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 13:50:57.903490", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "32": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1413, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"create_date\":\"2025-05-24T09:13:20.509502Z\",\"modify_date\":\"2025-05-24T09:14:18.011228Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"weight_type\":\"L\",\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2,\"created_by\":{\"id\":2,\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"last_login\":null,\"is_superuser\":false,\"username\":\"moji\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"email\":\"moji@gmail.com\",\"is_staff\":true,\"is_active\":true,\"date_joined\":\"2025-05-05T07:56:07.933223Z\",\"create_date\":\"2025-05-05T07:56:08.109571Z\",\"modify_date\":\"2025-05-05T07:56:08.109571Z\",\"creator_info\":null,\"modifier_info\":null,\"trash\":false,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"otp_status\":false,\"is_herd_owner\":false,\"created_by\":null,\"modified_by\":null,\"province\":null,\"city\":null,\"groups\":[],\"user_permissions\":[]},\"modified_by\":{\"id\":2,\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"last_login\":null,\"is_superuser\":false,\"username\":\"moji\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"email\":\"moji@gmail.com\",\"is_staff\":true,\"is_active\":true,\"date_joined\":\"2025-05-05T07:56:07.933223Z\",\"create_date\":\"2025-05-05T07:56:08.109571Z\",\"modify_date\":\"2025-05-05T07:56:08.109571Z\",\"creator_info\":null,\"modifier_info\":null,\"trash\":false,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"otp_status\":false,\"is_herd_owner\":false,\"created_by\":null,\"modified_by\":null,\"province\":null,\"city\":null,\"groups\":[],\"user_permissions\":[]},\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"create_date\":\"2025-05-24T09:07:39.682557Z\",\"modify_date\":\"2025-05-24T09:07:39.682557Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"code\":\"256666\",\"status\":\"active\",\"created_by\":2,\"modified_by\":2,\"province\":1,\"city\":1,\"organization\":1},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"}}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 13:51:19.268267", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "33": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1329, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"code\":\"256666\",\"province\":1,\"city\":1,\"organization\":1,\"status\":\"active\"},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"weight_type\":\"L\",\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:11:47.378456", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "34": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1341, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"code\":\"256666\",\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"organization\":1,\"status\":\"active\"},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"weight_type\":\"L\",\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:15:22.145920", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "35": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1460, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"code\":\"256666\",\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"status\":\"active\"},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"weight_type\":\"L\",\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:16:30.997973", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "36": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1440, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"code\":\"256666\",\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"status\":\"active\"},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"weight_type\":\"L\",\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:16:53.392414", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "37": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1503, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"code\":\"256666\",\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"status\":\"active\"},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"weight_type\":\"L\",\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:16:57.008935", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "38": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 334, "body_response": "{\"id\":4,\"herd\":{\"creator_info\":\"\",\"modifier_info\":\"\",\"trash\":false,\"name\":\"\",\"photo\":\"\",\"code\":\"\",\"heavy_livestock_number\":null,\"light_livestock_number\":null,\"heavy_livestock_quota\":null,\"light_livestock_quota\":null,\"postal\":\"\",\"institution\":\"\",\"epidemiologic\":\"\",\"latitude\":null,\"longitude\":null,\"unit_unique_id\":\"\",\"activity\":null,\"activity_state\":false,\"operating_license_state\":false,\"capacity\":null,\"created_by\":null,\"modified_by\":null,\"owner\":null,\"cooperative\":null,\"province\":null,\"city\":null,\"contractor\":null},\"tag\":{\"code\":\"\",\"province\":null,\"city\":null,\"organization\":null,\"status\":\"\"},\"type\":{\"name\":\"\"},\"use_type\":{\"name\":\"\"},\"weight_type\":\"L\",\"species\":{\"name\":\"\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:53:13.544607", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "39": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 362, "body_response": "{\"id\":5,\"herd\":{\"creator_info\":\"\",\"modifier_info\":\"\",\"trash\":false,\"name\":\"\",\"photo\":\"\",\"code\":\"\",\"heavy_livestock_number\":null,\"light_livestock_number\":null,\"heavy_livestock_quota\":null,\"light_livestock_quota\":null,\"postal\":\"\",\"institution\":\"\",\"epidemiologic\":\"\",\"latitude\":null,\"longitude\":null,\"unit_unique_id\":\"\",\"activity\":null,\"activity_state\":false,\"operating_license_state\":false,\"capacity\":null,\"created_by\":null,\"modified_by\":null,\"owner\":null,\"cooperative\":null,\"province\":null,\"city\":null,\"contractor\":null},\"tag\":{\"code\":\"\",\"province\":null,\"city\":null,\"organization\":null,\"status\":\"\"},\"type\":{\"name\":\"\"},\"use_type\":{\"name\":\"\"},\"weight_type\":\"L\",\"species\":{\"name\":\"\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:53:46.653831", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "40": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 316, "body_response": "{\"id\":6,\"herd\":{\"creator_info\":\"\",\"modifier_info\":\"\",\"trash\":false,\"name\":\"\",\"photo\":\"\",\"code\":\"\",\"heavy_livestock_number\":null,\"light_livestock_number\":null,\"heavy_livestock_quota\":null,\"light_livestock_quota\":null,\"postal\":\"\",\"institution\":\"\",\"epidemiologic\":\"\",\"latitude\":null,\"longitude\":null,\"unit_unique_id\":\"\",\"activity\":null,\"activity_state\":false,\"operating_license_state\":false,\"capacity\":null,\"created_by\":null,\"modified_by\":null,\"owner\":null,\"cooperative\":null,\"province\":null,\"city\":null,\"contractor\":null},\"tag\":{\"code\":\"\",\"province\":null,\"city\":null,\"organization\":null,\"status\":\"\"},\"type\":{\"name\":\"\"},\"use_type\":{\"name\":\"\"},\"weight_type\":\"L\",\"species\":{\"name\":\"\"},\"birthdate\":\"2025-05-24T11:23:13.486799Z\",\"gender\":2}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:54:01.763341", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "41": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 284, "body_response": "{\"id\":7,\"herd\":{\"creator_info\":\"\",\"modifier_info\":\"\",\"trash\":false,\"name\":\"\",\"photo\":\"\",\"code\":\"\",\"heavy_livestock_number\":null,\"light_livestock_number\":null,\"heavy_livestock_quota\":null,\"light_livestock_quota\":null,\"postal\":\"\",\"institution\":\"\",\"epidemiologic\":\"\",\"latitude\":null,\"longitude\":null,\"unit_unique_id\":\"\",\"activity\":null,\"activity_state\":false,\"operating_license_state\":false,\"capacity\":null,\"created_by\":null,\"modified_by\":null,\"owner\":null,\"cooperative\":null,\"province\":null,\"city\":null,\"contractor\":null},\"tag\":{\"code\":\"\",\"province\":null,\"city\":null,\"organization\":null,\"status\":\"\"},\"type\":{\"name\":\"\"},\"use_type\":{\"name\":\"\"},\"weight_type\":\"L\",\"species\":{\"name\":\"\"},\"birthdate\":\"2025-05-24T11:23:13.486799Z\",\"gender\":2}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:56:04.431779", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}}} \ No newline at end of file +{"_default": {"1": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:54:55.040619"}, "2": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:54:59.706596"}, "3": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:56:29.544076"}, "4": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:57:05.503536"}, "5": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 500, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 545, "body_response": "\n\n\n \n \n IntegrityError\n at /livestock/web/api/v1/livestock_species/\n \n \n \n \n\n\n
\n

IntegrityError\n at /livestock/web/api/v1/livestock_species/

\n
null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n
\n \n\n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n\n \n \n \n \n\n\n \n \n \n \n\n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Request Method:POST
Request URL:http://127.0.0.1:8000/livestock/web/api/v1/livestock_species/
Django Version:5.0
Exception Type:IntegrityError
Exception Value:
null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n
Exception Location:D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute
Raised during:apps.livestock.web.api.v1.api.LiveStockViewSet
Python Executable:D:\\Software\\env\\Scripts\\python.exe
Python Version:3.12.0
Python Path:
['D:\\\\Project\\\\Rasaddam_Backend',\n 'D:\\\\Software\\\\python-3.12.0\\\\python312.zip',\n 'D:\\\\Software\\\\python-3.12.0\\\\DLLs',\n 'D:\\\\Software\\\\python-3.12.0\\\\Lib',\n 'D:\\\\Software\\\\python-3.12.0',\n 'D:\\\\Software\\\\env',\n 'D:\\\\Software\\\\env\\\\Lib\\\\site-packages',\n 'D:\\\\Software\\\\env\\\\Lib\\\\site-packages\\\\setuptools\\\\_vendor']
Server time:Sat, 24 May 2025 07:27:42 +0000
\n
\n\n\n\n\n
\n

Traceback \n Switch to copy-and-paste view\n

\n
\n
    \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute\n \n\n \n
    \n \n
      \n \n
    1.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    2. \n \n
    3.         self.db.validate_no_broken_transaction()
    4. \n \n
    5.         with self.db.wrap_database_errors:
    6. \n \n
    7.             if params is None:
    8. \n \n
    9.                 # params default might be backend specific.
    10. \n \n
    11.                 return self.cursor.execute(sql)
    12. \n \n
    13.             else:
    14. \n \n
    \n \n
      \n
    1.                 return self.cursor.execute(sql, params)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def _executemany(self, sql, param_list, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ignored_wrapper_args
    (False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n  'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>})
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n The above exception (null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL: Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n) was the direct cause of the following exception:\n \n

  • \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\core\\handlers\\exception.py, line 55, in inner\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         return inner
    3. \n \n
    4.     else:
    5. \n \n
    6. \n \n
    7.         @wraps(get_response)
    8. \n \n
    9.         def inner(request):
    10. \n \n
    11.             try:
    12. \n \n
    \n \n
      \n
    1.                 response = get_response(request)\n                               ^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             except Exception as exc:
    2. \n \n
    3.                 response = response_for_exception(request, exc)
    4. \n \n
    5.             return response
    6. \n \n
    7. \n \n
    8.         return inner
    9. \n \n
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    exc
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    get_response
    <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x000001C39D12D910>>
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock_species/'>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\core\\handlers\\base.py, line 197, in _get_response\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         if response is None:
    3. \n \n
    4.             wrapped_callback = self.make_view_atomic(callback)
    5. \n \n
    6.             # If it is an asynchronous view, run it in a subthread.
    7. \n \n
    8.             if iscoroutinefunction(wrapped_callback):
    9. \n \n
    10.                 wrapped_callback = async_to_sync(wrapped_callback)
    11. \n \n
    12.             try:
    13. \n \n
    \n \n
      \n
    1.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             except Exception as e:
    2. \n \n
    3.                 response = self.process_exception_by_middleware(e, request)
    4. \n \n
    5.                 if response is None:
    6. \n \n
    7.                     raise
    8. \n \n
    9. \n \n
    10.         # Complain if the view returned None (a common error).
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    callback
    <function LiveStockViewSet at 0x000001C39CFFAFC0>
    callback_args
    ()
    callback_kwargs
    {}
    middleware_method
    <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>>
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock_species/'>
    response
    None
    self
    <django.core.handlers.wsgi.WSGIHandler object at 0x000001C39D12D910>
    wrapped_callback
    <function LiveStockViewSet at 0x000001C39CFFAFC0>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\views\\decorators\\csrf.py, line 65, in _view_wrapper\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         async def _view_wrapper(request, *args, **kwargs):
    3. \n \n
    4.             return await view_func(request, *args, **kwargs)
    5. \n \n
    6. \n \n
    7.     else:
    8. \n \n
    9. \n \n
    10.         def _view_wrapper(request, *args, **kwargs):
    11. \n \n
    \n \n
      \n
    1.             return view_func(request, *args, **kwargs)\n                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     _view_wrapper.csrf_exempt = True
    3. \n \n
    4. \n \n
    5.     return wraps(view_func)(_view_wrapper)
    6. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    kwargs
    {}
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock_species/'>
    view_func
    <function LiveStockViewSet at 0x000001C39CFFAF20>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\viewsets.py, line 125, in view\n \n\n \n
    \n \n
      \n \n
    1.                 setattr(self, method, handler)
    2. \n \n
    3. \n \n
    4.             self.request = request
    5. \n \n
    6.             self.args = args
    7. \n \n
    8.             self.kwargs = kwargs
    9. \n \n
    10. \n \n
    11.             # And continue as usual
    12. \n \n
    \n \n
      \n
    1.             return self.dispatch(request, *args, **kwargs)\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         # take name and docstring from class
    3. \n \n
    4.         update_wrapper(view, cls, updated=())
    5. \n \n
    6. \n \n
    7.         # and possible attributes set by decorators
    8. \n \n
    9.         # like csrf_exempt from dispatch
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    action
    'list'
    actions
    {'get': 'list', 'head': 'list', 'post': 'create'}
    args
    ()
    cls
    <class 'apps.livestock.web.api.v1.api.LiveStockViewSet'>
    handler
    <bound method ListModelMixin.list of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>>
    initkwargs
    {'basename': 'livestock_species', 'detail': False, 'suffix': 'List'}
    kwargs
    {}
    method
    'head'
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock_species/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 515, in dispatch\n \n\n \n
    \n \n
      \n \n
    1.                                   self.http_method_not_allowed)
    2. \n \n
    3.             else:
    4. \n \n
    5.                 handler = self.http_method_not_allowed
    6. \n \n
    7. \n \n
    8.             response = handler(request, *args, **kwargs)
    9. \n \n
    10. \n \n
    11.         except Exception as exc:
    12. \n \n
    \n \n
      \n
    1.             response = self.handle_exception(exc)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         self.response = self.finalize_response(request, response, *args, **kwargs)
    3. \n \n
    4.         return self.response
    5. \n \n
    6. \n \n
    7.     def options(self, request, *args, **kwargs):
    8. \n \n
    9.         """
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    handler
    <bound method CreateModelMixin.create of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>>
    kwargs
    {}
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 475, in handle_exception\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         exception_handler = self.get_exception_handler()
    3. \n \n
    4. \n \n
    5.         context = self.get_exception_handler_context()
    6. \n \n
    7.         response = exception_handler(exc, context)
    8. \n \n
    9. \n \n
    10.         if response is None:
    11. \n \n
    \n \n
      \n
    1.             self.raise_uncaught_exception(exc)\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         response.exception = True
    3. \n \n
    4.         return response
    5. \n \n
    6. \n \n
    7.     def raise_uncaught_exception(self, exc):
    8. \n \n
    9.         if settings.DEBUG:
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    context
    {'args': (),\n 'kwargs': {},\n 'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>,\n 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>}
    exc
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    exception_handler
    <function exception_handler at 0x000001C39CCADE40>
    response
    None
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 486, in raise_uncaught_exception\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.     def raise_uncaught_exception(self, exc):
    3. \n \n
    4.         if settings.DEBUG:
    5. \n \n
    6.             request = self.request
    7. \n \n
    8.             renderer_format = getattr(request.accepted_renderer, 'format')
    9. \n \n
    10.             use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')
    11. \n \n
    12.             request.force_plaintext_errors(use_plaintext_traceback)
    13. \n \n
    \n \n
      \n
    1.         raise exc\n             ^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     # Note: Views are made CSRF exempt from within `as_view` as to prevent
    3. \n \n
    4.     # accidental removal of this exemption in cases where `dispatch` needs to
    5. \n \n
    6.     # be overridden.
    7. \n \n
    8.     def dispatch(self, request, *args, **kwargs):
    9. \n \n
    10.         """
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    exc
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    renderer_format
    'json'
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    use_plaintext_traceback
    True
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 512, in dispatch\n \n\n \n
    \n \n
      \n \n
    1.             # Get the appropriate handler method
    2. \n \n
    3.             if request.method.lower() in self.http_method_names:
    4. \n \n
    5.                 handler = getattr(self, request.method.lower(),
    6. \n \n
    7.                                   self.http_method_not_allowed)
    8. \n \n
    9.             else:
    10. \n \n
    11.                 handler = self.http_method_not_allowed
    12. \n \n
    13. \n \n
    \n \n
      \n
    1.             response = handler(request, *args, **kwargs)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         except Exception as exc:
    3. \n \n
    4.             response = self.handle_exception(exc)
    5. \n \n
    6. \n \n
    7.         self.response = self.finalize_response(request, response, *args, **kwargs)
    8. \n \n
    9.         return self.response
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    handler
    <bound method CreateModelMixin.create of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>>
    kwargs
    {}
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\mixins.py, line 19, in create\n \n\n \n
    \n \n
      \n \n
    1. class CreateModelMixin:
    2. \n \n
    3.     """
    4. \n \n
    5.     Create a model instance.
    6. \n \n
    7.     """
    8. \n \n
    9.     def create(self, request, *args, **kwargs):
    10. \n \n
    11.         serializer = self.get_serializer(data=request.data)
    12. \n \n
    13.         serializer.is_valid(raise_exception=True)
    14. \n \n
    \n \n
      \n
    1.         self.perform_create(serializer)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.         headers = self.get_success_headers(serializer.data)
    2. \n \n
    3.         return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
    4. \n \n
    5. \n \n
    6.     def perform_create(self, serializer):
    7. \n \n
    8.         serializer.save()
    9. \n \n
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    kwargs
    {}
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    serializer
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'name': '\u06af\u0648\u0633\u0641\u0646\u062f'}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\mixins.py, line 24, in perform_create\n \n\n \n
    \n \n
      \n \n
    1.         serializer = self.get_serializer(data=request.data)
    2. \n \n
    3.         serializer.is_valid(raise_exception=True)
    4. \n \n
    5.         self.perform_create(serializer)
    6. \n \n
    7.         headers = self.get_success_headers(serializer.data)
    8. \n \n
    9.         return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
    10. \n \n
    11. \n \n
    12.     def perform_create(self, serializer):
    13. \n \n
    \n \n
      \n
    1.         serializer.save()\n            ^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def get_success_headers(self, data):
    3. \n \n
    4.         try:
    5. \n \n
    6.             return {'Location': str(data[api_settings.URL_FIELD_NAME])}
    7. \n \n
    8.         except (TypeError, KeyError):
    9. \n \n
    10.             return {}
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000001C39D47F830>
    serializer
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'name': '\u06af\u0648\u0633\u0641\u0646\u062f'}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\serializers.py, line 210, in save\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         if self.instance is not None:
    3. \n \n
    4.             self.instance = self.update(self.instance, validated_data)
    5. \n \n
    6.             assert self.instance is not None, (
    7. \n \n
    8.                 '`update()` did not return an object instance.'
    9. \n \n
    10.             )
    11. \n \n
    12.         else:
    13. \n \n
    \n \n
      \n
    1.             self.instance = self.create(validated_data)\n                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             assert self.instance is not None, (
    2. \n \n
    3.                 '`create()` did not return an object instance.'
    4. \n \n
    5.             )
    6. \n \n
    7. \n \n
    8.         return self.instance
    9. \n \n
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    kwargs
    {}
    self
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'name': '\u06af\u0648\u0633\u0641\u0646\u062f'}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    validated_data
    {}
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\serializers.py, line 991, in create\n \n\n \n
    \n \n
      \n \n
    1.         info = model_meta.get_field_info(ModelClass)
    2. \n \n
    3.         many_to_many = {}
    4. \n \n
    5.         for field_name, relation_info in info.relations.items():
    6. \n \n
    7.             if relation_info.to_many and (field_name in validated_data):
    8. \n \n
    9.                 many_to_many[field_name] = validated_data.pop(field_name)
    10. \n \n
    11. \n \n
    12.         try:
    13. \n \n
    \n \n
      \n
    1.             instance = ModelClass._default_manager.create(**validated_data)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.         except TypeError:
    2. \n \n
    3.             tb = traceback.format_exc()
    4. \n \n
    5.             msg = (
    6. \n \n
    7.                 'Got a `TypeError` when calling `%s.%s.create()`. '
    8. \n \n
    9.                 'This may be because you have a writable field on the '
    10. \n \n
    11.                 'serializer class that is not a valid argument to '
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ModelClass
    <class 'apps.livestock.models.LiveStock'>
    field_name
    'species'
    info
    FieldInfo(pk=<django.db.models.fields.BigAutoField: id>, fields={'create_date': <django.db.models.fields.DateTimeField: create_date>, 'modify_date': <django.db.models.fields.DateTimeField: modify_date>, 'creator_info': <django.db.models.fields.CharField: creator_info>, 'modifier_info': <django.db.models.fields.CharField: modifier_info>, 'trash': <django.db.models.fields.BooleanField: trash>, 'weight_type': <django.db.models.fields.CharField: weight_type>, 'birthdate': <django.db.models.fields.DateTimeField: birthdate>, 'gender': <django.db.models.fields.IntegerField: gender>}, forward_relations={'created_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: created_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'modified_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: modified_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'herd': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: herd>, related_model=<class 'apps.herd.models.Herd'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'tag': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: tag>, related_model=<class 'apps.tag.models.Tag'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: type>, related_model=<class 'apps.livestock.models.LiveStockType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'use_type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: use_type>, related_model=<class 'apps.livestock.models.LiveStockUseType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'species': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: species>, related_model=<class 'apps.livestock.models.LiveStockSpecies'>, to_many=False, to_field='id', has_through_model=False, reverse=False)}, reverse_relations={}, fields_and_pk={'pk': <django.db.models.fields.BigAutoField: id>, 'id': <django.db.models.fields.BigAutoField: id>, 'create_date': <django.db.models.fields.DateTimeField: create_date>, 'modify_date': <django.db.models.fields.DateTimeField: modify_date>, 'creator_info': <django.db.models.fields.CharField: creator_info>, 'modifier_info': <django.db.models.fields.CharField: modifier_info>, 'trash': <django.db.models.fields.BooleanField: trash>, 'weight_type': <django.db.models.fields.CharField: weight_type>, 'birthdate': <django.db.models.fields.DateTimeField: birthdate>, 'gender': <django.db.models.fields.IntegerField: gender>}, relations={'created_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: created_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'modified_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: modified_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'herd': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: herd>, related_model=<class 'apps.herd.models.Herd'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'tag': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: tag>, related_model=<class 'apps.tag.models.Tag'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: type>, related_model=<class 'apps.livestock.models.LiveStockType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'use_type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: use_type>, related_model=<class 'apps.livestock.models.LiveStockUseType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), '\u2026 <trimmed 4321 bytes string>
    many_to_many
    {}
    relation_info
    RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: species>, related_model=<class 'apps.livestock.models.LiveStockSpecies'>, to_many=False, to_field='id', has_through_model=False, reverse=False)
    self
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock_species/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'name': '\u06af\u0648\u0633\u0641\u0646\u062f'}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    validated_data
    {}
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\manager.py, line 87, in manager_method\n \n\n \n
    \n \n
      \n \n
    1.         return []
    2. \n \n
    3. \n \n
    4.     @classmethod
    5. \n \n
    6.     def _get_queryset_methods(cls, queryset_class):
    7. \n \n
    8.         def create_method(name, method):
    9. \n \n
    10.             @wraps(method)
    11. \n \n
    12.             def manager_method(self, *args, **kwargs):
    13. \n \n
    \n \n
      \n
    1.                 return getattr(self.get_queryset(), name)(*args, **kwargs)\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.             return manager_method
    3. \n \n
    4. \n \n
    5.         new_methods = {}
    6. \n \n
    7.         for name, method in inspect.getmembers(
    8. \n \n
    9.             queryset_class, predicate=inspect.isfunction
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    kwargs
    {}
    name
    'create'
    self
    <django.db.models.manager.Manager object at 0x000001C39D00D010>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\query.py, line 677, in create\n \n\n \n
    \n \n
      \n \n
    1.             raise ValueError(
    2. \n \n
    3.                 "The following fields do not exist in this model: %s"
    4. \n \n
    5.                 % ", ".join(reverse_one_to_one_fields)
    6. \n \n
    7.             )
    8. \n \n
    9. \n \n
    10.         obj = self.model(**kwargs)
    11. \n \n
    12.         self._for_write = True
    13. \n \n
    \n \n
      \n
    1.         obj.save(force_insert=True, using=self.db)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.         return obj
    2. \n \n
    3. \n \n
    4.     async def acreate(self, **kwargs):
    5. \n \n
    6.         return await sync_to_async(self.create)(**kwargs)
    7. \n \n
    8. \n \n
    9.     def _prepare_for_bulk_create(self, objs):
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    kwargs
    {}
    obj
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    reverse_one_to_one_fields
    frozenset()
    self
    <QuerySet []>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Project\\Rasaddam_Backend\\apps\\livestock\\models.py, line 87, in save\n \n\n \n
    \n \n
      \n \n
    1.     )
    2. \n \n
    3.     gender = models.IntegerField(choices=gender_type, default=1)
    4. \n \n
    5. \n \n
    6.     def __str__(self):
    7. \n \n
    8.         return f'{self.type.name}-{self.species.name}'
    9. \n \n
    10. \n \n
    11.     def save(self, *args, **kwargs):
    12. \n \n
    \n \n
      \n
    1.         super(LiveStock, self).save(*args, **kwargs)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    __class__
    <class 'apps.livestock.models.LiveStock'>
    args
    ()
    kwargs
    {'force_insert': True, 'using': 'default'}
    self
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Project\\Rasaddam_Backend\\apps\\core\\models.py, line 37, in save\n \n\n \n
    \n \n
      \n \n
    1.     def save(self, *args, **kwargs):
    2. \n \n
    3.         user = get_current_user()  # get user object
    4. \n \n
    5.         self.modified_by = user
    6. \n \n
    7.         if not self.creator_info:
    8. \n \n
    9.             self.created_by = user
    10. \n \n
    11.             self.creator_info = user.first_name + ' ' + user.last_name + '-' + user.national_code
    12. \n \n
    13.         self.modifier_info = user.first_name + ' ' + user.last_name + '-' + user.national_code
    14. \n \n
    \n \n
      \n
    1.         super(BaseModel, self).save(*args, **kwargs)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2. \n \n
    3. class MobileTest(BaseModel):
    4. \n \n
    5.     latitude = models.DecimalField(max_digits=22, decimal_places=16)
    6. \n \n
    7.     longitude = models.DecimalField(max_digits=22, decimal_places=16)
    8. \n \n
    9.     count = models.IntegerField(default=0)
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    __class__
    <class 'apps.core.models.BaseModel'>
    args
    ()
    kwargs
    {'force_insert': True, 'using': 'default'}
    self
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    user
    <User: moji \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-None>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 814, in save\n \n\n \n
    \n \n
      \n \n
    1.             for field in self._meta.concrete_fields:
    2. \n \n
    3.                 if not field.primary_key and not hasattr(field, "through"):
    4. \n \n
    5.                     field_names.add(field.attname)
    6. \n \n
    7.             loaded_fields = field_names.difference(deferred_fields)
    8. \n \n
    9.             if loaded_fields:
    10. \n \n
    11.                 update_fields = frozenset(loaded_fields)
    12. \n \n
    13. \n \n
    \n \n
      \n
    1.         self.save_base(\n             ^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             using=using,
    2. \n \n
    3.             force_insert=force_insert,
    4. \n \n
    5.             force_update=force_update,
    6. \n \n
    7.             update_fields=update_fields,
    8. \n \n
    9.         )
    10. \n \n
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    deferred_fields
    set()
    force_insert
    True
    force_update
    False
    self
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    update_fields
    None
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 901, in save_base\n \n\n \n
    \n \n
      \n \n
    1.             parent_inserted = False
    2. \n \n
    3.             if not raw:
    4. \n \n
    5.                 # Validate force insert only when parents are inserted.
    6. \n \n
    7.                 force_insert = self._validate_force_insert(force_insert)
    8. \n \n
    9.                 parent_inserted = self._save_parents(
    10. \n \n
    11.                     cls, using, update_fields, force_insert
    12. \n \n
    13.                 )
    14. \n \n
    \n \n
      \n
    1.             updated = self._save_table(\n                           
      \u2026
    2. \n
    \n \n
      \n \n
    1.                 raw,
    2. \n \n
    3.                 cls,
    4. \n \n
    5.                 force_insert or parent_inserted,
    6. \n \n
    7.                 force_update,
    8. \n \n
    9.                 using,
    10. \n \n
    11.                 update_fields,
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    cls
    <class 'apps.livestock.models.LiveStock'>
    context_manager
    <contextlib._GeneratorContextManager object at 0x000001C39D4BFCE0>
    force_insert
    (<class 'apps.livestock.models.LiveStock'>,)
    force_update
    False
    meta
    <Options for LiveStock>
    origin
    <class 'apps.livestock.models.LiveStock'>
    parent_inserted
    False
    raw
    False
    self
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    update_fields
    None
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 1059, in _save_table\n \n\n \n
    \n \n
      \n \n
    1.                 )
    2. \n \n
    3.             fields = [
    4. \n \n
    5.                 f
    6. \n \n
    7.                 for f in meta.local_concrete_fields
    8. \n \n
    9.                 if not f.generated and (pk_set or f is not meta.auto_field)
    10. \n \n
    11.             ]
    12. \n \n
    13.             returning_fields = meta.db_returning_fields
    14. \n \n
    \n \n
      \n
    1.             results = self._do_insert(\n                            
      \u2026
    2. \n
    \n \n
      \n \n
    1.                 cls._base_manager, using, fields, returning_fields, raw
    2. \n \n
    3.             )
    4. \n \n
    5.             if results:
    6. \n \n
    7.                 for value, field in zip(results[0], returning_fields):
    8. \n \n
    9.                     setattr(self, field.attname, value)
    10. \n \n
    11.         return updated
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    cls
    <class 'apps.livestock.models.LiveStock'>
    fields
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    force_insert
    (<class 'apps.livestock.models.LiveStock'>,)
    force_update
    False
    meta
    <Options for LiveStock>
    non_pks
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    pk_set
    False
    pk_val
    None
    raw
    False
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    update_fields
    None
    updated
    False
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 1100, in _do_insert\n \n\n \n
    \n \n
      \n \n
    1.         return filtered._update(values) > 0
    2. \n \n
    3. \n \n
    4.     def _do_insert(self, manager, using, fields, returning_fields, raw):
    5. \n \n
    6.         """
    7. \n \n
    8.         Do an INSERT. If returning_fields is defined then this method should
    9. \n \n
    10.         return the newly created data for the model.
    11. \n \n
    12.         """
    13. \n \n
    \n \n
      \n
    1.         return manager._insert(\n                     
      \u2026
    2. \n
    \n \n
      \n \n
    1.             [self],
    2. \n \n
    3.             fields=fields,
    4. \n \n
    5.             returning_fields=returning_fields,
    6. \n \n
    7.             using=using,
    8. \n \n
    9.             raw=raw,
    10. \n \n
    11.         )
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    fields
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    manager
    <django.db.models.manager.Manager object at 0x000001C39D151820>
    raw
    False
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\manager.py, line 87, in manager_method\n \n\n \n
    \n \n
      \n \n
    1.         return []
    2. \n \n
    3. \n \n
    4.     @classmethod
    5. \n \n
    6.     def _get_queryset_methods(cls, queryset_class):
    7. \n \n
    8.         def create_method(name, method):
    9. \n \n
    10.             @wraps(method)
    11. \n \n
    12.             def manager_method(self, *args, **kwargs):
    13. \n \n
    \n \n
      \n
    1.                 return getattr(self.get_queryset(), name)(*args, **kwargs)\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.             return manager_method
    3. \n \n
    4. \n \n
    5.         new_methods = {}
    6. \n \n
    7.         for name, method in inspect.getmembers(
    8. \n \n
    9.             queryset_class, predicate=inspect.isfunction
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    kwargs
    {'fields': [<django.db.models.fields.DateTimeField: create_date>,\n            <django.db.models.fields.DateTimeField: modify_date>,\n            <django.db.models.fields.related.ForeignKey: created_by>,\n            <django.db.models.fields.related.ForeignKey: modified_by>,\n            <django.db.models.fields.CharField: creator_info>,\n            <django.db.models.fields.CharField: modifier_info>,\n            <django.db.models.fields.BooleanField: trash>,\n            <django.db.models.fields.related.ForeignKey: herd>,\n            <django.db.models.fields.related.ForeignKey: tag>,\n            <django.db.models.fields.related.ForeignKey: type>,\n            <django.db.models.fields.related.ForeignKey: use_type>,\n            <django.db.models.fields.CharField: weight_type>,\n            <django.db.models.fields.related.ForeignKey: species>,\n            <django.db.models.fields.DateTimeField: birthdate>,\n            <django.db.models.fields.IntegerField: gender>],\n 'raw': False,\n 'returning_fields': [<django.db.models.fields.BigAutoField: id>],\n 'using': 'default'}
    name
    '_insert'
    self
    <django.db.models.manager.Manager object at 0x000001C39D151820>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\query.py, line 1845, in _insert\n \n\n \n
    \n \n
      \n \n
    1.         query = sql.InsertQuery(
    2. \n \n
    3.             self.model,
    4. \n \n
    5.             on_conflict=on_conflict,
    6. \n \n
    7.             update_fields=update_fields,
    8. \n \n
    9.             unique_fields=unique_fields,
    10. \n \n
    11.         )
    12. \n \n
    13.         query.insert_values(fields, objs, raw=raw)
    14. \n \n
    \n \n
      \n
    1.         return query.get_compiler(using=using).execute_sql(returning_fields)\n                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     _insert.alters_data = True
    3. \n \n
    4.     _insert.queryset_only = False
    5. \n \n
    6. \n \n
    7.     def _batched_insert(
    8. \n \n
    9.         self,
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    fields
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    objs
    Error in formatting: AttributeError: 'NoneType' object has no attribute 'name'
    on_conflict
    None
    query
    <django.db.models.sql.subqueries.InsertQuery object at 0x000001C39D4BFD40>
    raw
    False
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    <QuerySet []>
    unique_fields
    None
    update_fields
    None
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\sql\\compiler.py, line 1822, in execute_sql\n \n\n \n
    \n \n
      \n \n
    1.             and len(self.query.objs) != 1
    2. \n \n
    3.             and not self.connection.features.can_return_rows_from_bulk_insert
    4. \n \n
    5.         )
    6. \n \n
    7.         opts = self.query.get_meta()
    8. \n \n
    9.         self.returning_fields = returning_fields
    10. \n \n
    11.         with self.connection.cursor() as cursor:
    12. \n \n
    13.             for sql, params in self.as_sql():
    14. \n \n
    \n \n
      \n
    1.                 cursor.execute(sql, params)\n                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             if not self.returning_fields:
    2. \n \n
    3.                 return []
    4. \n \n
    5.             if (
    6. \n \n
    7.                 self.connection.features.can_return_rows_from_bulk_insert
    8. \n \n
    9.                 and len(self.query.objs) > 1
    10. \n \n
    11.             ):
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    cursor
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    opts
    <Options for LiveStock>
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    <SQLInsertCompiler model=LiveStock connection=<DatabaseWrapper vendor='postgresql' alias='default'> using='default'>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 122, in execute\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2. \n \n
    3. class CursorDebugWrapper(CursorWrapper):
    4. \n \n
    5.     # XXX callproc isn't instrumented at this time.
    6. \n \n
    7. \n \n
    8.     def execute(self, sql, params=None):
    9. \n \n
    10.         with self.debug_sql(sql, params, use_last_executed_query=True):
    11. \n \n
    \n \n
      \n
    1.             return super().execute(sql, params)\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def executemany(self, sql, param_list):
    3. \n \n
    4.         with self.debug_sql(sql, param_list, many=True):
    5. \n \n
    6.             return super().executemany(sql, param_list)
    7. \n \n
    8. \n \n
    9.     @contextmanager
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    __class__
    <class 'django.db.backends.utils.CursorDebugWrapper'>
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 79, in execute\n \n\n \n
    \n \n
      \n \n
    1.             elif kparams is None:
    2. \n \n
    3.                 return self.cursor.callproc(procname, params)
    4. \n \n
    5.             else:
    6. \n \n
    7.                 params = params or ()
    8. \n \n
    9.                 return self.cursor.callproc(procname, params, kparams)
    10. \n \n
    11. \n \n
    12.     def execute(self, sql, params=None):
    13. \n \n
    \n \n
      \n
    1.         return self._execute_with_wrappers(\n                   
      \u2026
    2. \n
    \n \n
      \n \n
    1.             sql, params, many=False, executor=self._execute
    2. \n \n
    3.         )
    4. \n \n
    5. \n \n
    6.     def executemany(self, sql, param_list):
    7. \n \n
    8.         return self._execute_with_wrappers(
    9. \n \n
    10.             sql, param_list, many=True, executor=self._executemany
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 92, in _execute_with_wrappers\n \n\n \n
    \n \n
      \n \n
    1.             sql, param_list, many=True, executor=self._executemany
    2. \n \n
    3.         )
    4. \n \n
    5. \n \n
    6.     def _execute_with_wrappers(self, sql, params, many, executor):
    7. \n \n
    8.         context = {"connection": self.db, "cursor": self}
    9. \n \n
    10.         for wrapper in reversed(self.db.execute_wrappers):
    11. \n \n
    12.             executor = functools.partial(wrapper, executor)
    13. \n \n
    \n \n
      \n
    1.         return executor(sql, params, many, context)\n                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def _execute(self, sql, params, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    context
    {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>}
    executor
    <bound method CursorWrapper._execute of <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>>
    many
    False
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 100, in _execute\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.     def _execute(self, sql, params, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    12.         self.db.validate_no_broken_transaction()
    13. \n \n
    \n \n
      \n
    1.         with self.db.wrap_database_errors:\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             if params is None:
    2. \n \n
    3.                 # params default might be backend specific.
    4. \n \n
    5.                 return self.cursor.execute(sql)
    6. \n \n
    7.             else:
    8. \n \n
    9.                 return self.cursor.execute(sql, params)
    10. \n \n
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ignored_wrapper_args
    (False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n  'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>})
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\utils.py, line 91, in __exit__\n \n\n \n
    \n \n
      \n \n
    1.             db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__)
    2. \n \n
    3.             if issubclass(exc_type, db_exc_type):
    4. \n \n
    5.                 dj_exc_value = dj_exc_type(*exc_value.args)
    6. \n \n
    7.                 # Only set the 'errors_occurred' flag for errors that may make
    8. \n \n
    9.                 # the connection unusable.
    10. \n \n
    11.                 if dj_exc_type not in (DataError, IntegrityError):
    12. \n \n
    13.                     self.wrapper.errors_occurred = True
    14. \n \n
    \n \n
      \n
    1.                 raise dj_exc_value.with_traceback(traceback) from exc_value\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def __call__(self, func):
    3. \n \n
    4.         # Note that we are intentionally not using @wraps here for performance
    5. \n \n
    6.         # reasons. Refs #21109.
    7. \n \n
    8.         def inner(*args, **kwargs):
    9. \n \n
    10.             with self:
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    db_exc_type
    <class 'psycopg2.IntegrityError'>
    dj_exc_type
    <class 'django.db.utils.IntegrityError'>
    dj_exc_value
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    exc_type
    <class 'psycopg2.errors.NotNullViolation'>
    exc_value
    NotNullViolation('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (1, 2025-05-24 07:27:42.502517+00, 2025-05-24 07:27:42.502517+00, f, null, 1, null, null, null, null, null, L, null, null, null, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    self
    <django.db.utils.DatabaseErrorWrapper object at 0x000001C39D31AE10>
    traceback
    <traceback object at 0x000001C39D4D1EC0>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute\n \n\n \n
    \n \n
      \n \n
    1.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    2. \n \n
    3.         self.db.validate_no_broken_transaction()
    4. \n \n
    5.         with self.db.wrap_database_errors:
    6. \n \n
    7.             if params is None:
    8. \n \n
    9.                 # params default might be backend specific.
    10. \n \n
    11.                 return self.cursor.execute(sql)
    12. \n \n
    13.             else:
    14. \n \n
    \n \n
      \n
    1.                 return self.cursor.execute(sql, params)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def _executemany(self, sql, param_list, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ignored_wrapper_args
    (False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n  'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>})
    params
    (datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 7, 27, 42, 502517, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n None,\n None,\n None,\n None,\n 'L',\n None,\n None,\n 1)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000001C39D4BFDD0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n
\n
\n\n
\n
\n \n \n \n \n \n

\n \n
\n
\n\n
\n\n\n
\n

Request information

\n\n\n \n

USER

\n

moji \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-None

\n \n\n

GET

\n \n

No GET data

\n \n\n

POST

\n \n

No POST data

\n \n\n

FILES

\n \n

No FILES data

\n \n\n

COOKIES

\n \n

No cookie data

\n \n\n

META

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
VariableValue
ALLUSERSPROFILE
'C:\\\\ProgramData'
APPCODE_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\appcode.vmoptions'
APPDATA
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming'
CLION_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\clion.vmoptions'
COMMONPROGRAMFILES
'C:\\\\Program Files\\\\Common Files'
COMMONPROGRAMFILES(X86)
'C:\\\\Program Files (x86)\\\\Common Files'
COMMONPROGRAMW6432
'C:\\\\Program Files\\\\Common Files'
COMPUTERNAME
'DESKTOP-77GDGLN'
COMSPEC
'C:\\\\Windows\\\\system32\\\\cmd.exe'
CONTENT_LENGTH
'32'
CONTENT_TYPE
'application/json'
DATAGRIP_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\datagrip.vmoptions'
DATASPELL_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\dataspell.vmoptions'
DEVECOSTUDIO_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\devecostudio.vmoptions'
DJANGO_SETTINGS_MODULE
'Rasaddam_Backend.settings'
DRIVERDATA
'C:\\\\Windows\\\\System32\\\\Drivers\\\\DriverData'
EFC_9236
'1'
FPS_BROWSER_APP_PROFILE_STRING
'Internet Explorer'
FPS_BROWSER_USER_PROFILE_STRING
'Default'
GATEWAY_INTERFACE
'CGI/1.1'
GATEWAY_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\gateway.vmoptions'
GOLAND_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\goland.vmoptions'
HOMEDRIVE
'C:'
HOMEPATH
'\\\\Users\\\\Housh8'
HTTP_ACCEPT
'*/*'
HTTP_ACCEPT_ENCODING
'gzip, deflate, br'
HTTP_AUTHORIZATION
('Bearer '\n 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzQ4MTUwNTc5LCJpYXQiOjE3NDgwNjQxNzksImp0aSI6ImY1NjA3MGQ5M2Q3ZTQ2OWY5YjUzZTBiNWU0Yzg4ZGI4IiwidXNlcl9pZCI6MiwibmFtZSI6Im1vamkiLCJtb2JpbGUiOiIwOTM4OTY1NyIsIm5hdGlvbmFsX2NvZGUiOiI0MDYxMDgwNTk4In0.FKrYU38zStPGnrzgoDzvAd5EAiCDuoAFrHPXncAknok')
HTTP_CACHE_CONTROL
'no-cache'
HTTP_CONNECTION
'keep-alive'
HTTP_HOST
'127.0.0.1:8000'
HTTP_POSTMAN_TOKEN
'********************'
HTTP_USER_AGENT
'PostmanRuntime/7.44.0'
IDEA_INITIAL_DIRECTORY
'C:\\\\Users\\\\Housh8\\\\Desktop'
IDEA_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\idea.vmoptions'
JETBRAINSCLIENT_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\jetbrainsclient.vmoptions'
JETBRAINS_CLIENT_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\jetbrains_client.vmoptions'
LOCALAPPDATA
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local'
LOGONSERVER
'\\\\\\\\DESKTOP-77GDGLN'
NODEJS
'C:\\\\ProgramData\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Node.js'
NUMBER_OF_PROCESSORS
'4'
NVM_HOME
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm'
NVM_SYMLINK
'C:\\\\nvm4w\\\\nodejs'
ONEDRIVE
'C:\\\\Users\\\\Housh8\\\\OneDrive'
OS
'Windows_NT'
PATH
('D:\\\\Software\\\\env\\\\Scripts;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Program '\n 'Files\\\\Git\\\\cmd;C:\\\\Program '\n 'Files\\\\nodejs\\\\;D:\\\\Software\\\\python-3.12.0\\\\Scripts\\\\;D:\\\\Software\\\\python-3.12.0\\\\;D:\\\\Software\\\\python\\\\Scripts\\\\;D:\\\\Software\\\\python\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Launcher\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Microsoft '\n 'VS '\n 'Code\\\\bin;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming\\\\npm')
PATHEXT
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
PATH_INFO
'/livestock/web/api/v1/livestock_species/'
PHPSTORM_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\phpstorm.vmoptions'
PROCESSOR_ARCHITECTURE
'AMD64'
PROCESSOR_IDENTIFIER
'Intel64 Family 6 Model 158 Stepping 9, GenuineIntel'
PROCESSOR_LEVEL
'6'
PROCESSOR_REVISION
'9e09'
PROGRAMDATA
'C:\\\\ProgramData'
PROGRAMFILES
'C:\\\\Program Files'
PROGRAMFILES(X86)
'C:\\\\Program Files (x86)'
PROGRAMW6432
'C:\\\\Program Files'
PROMPT
'(env) $P$G'
PSMODULEPATH
('C:\\\\Program '\n 'Files\\\\WindowsPowerShell\\\\Modules;C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\Modules')
PUBLIC
'C:\\\\Users\\\\Public'
PYCHARM_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\pycharm.vmoptions'
QUERY_STRING
''
REMOTE_ADDR
'127.0.0.1'
REMOTE_HOST
''
REQUEST_METHOD
'POST'
RIDER_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\rider.vmoptions'
RUBYMINE_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\rubymine.vmoptions'
RUN_MAIN
'true'
RUSTROVER_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\RustRover.vmoptions'
SCRIPT_NAME
''
SERVER_NAME
'DESKTOP-77GDGLN'
SERVER_PORT
'8000'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SOFTWARE
'WSGIServer/0.2'
SESSIONNAME
'Console'
STUDIO_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\studio.vmoptions'
SYSTEMDRIVE
'C:'
SYSTEMROOT
'C:\\\\Windows'
TEMP
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Temp'
TERMINAL_EMULATOR
'JetBrains-JediTerm'
TERM_SESSION_ID
'eb03bff4-2cc9-43d8-baa8-b91cff85c929'
TMP
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Temp'
USERDOMAIN
'DESKTOP-77GDGLN'
USERDOMAIN_ROAMINGPROFILE
'DESKTOP-77GDGLN'
USERNAME
'Housh8'
USERPROFILE
'C:\\\\Users\\\\Housh8'
VIRTUAL_ENV
'D:\\\\Software\\\\env'
WEBIDE_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\webide.vmoptions'
WEBSTORM_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\webstorm.vmoptions'
WINDIR
'C:\\\\Windows'
_OLD_VIRTUAL_PATH
('C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Program '\n 'Files\\\\Git\\\\cmd;C:\\\\Program '\n 'Files\\\\nodejs\\\\;D:\\\\Software\\\\python-3.12.0\\\\Scripts\\\\;D:\\\\Software\\\\python-3.12.0\\\\;D:\\\\Software\\\\python\\\\Scripts\\\\;D:\\\\Software\\\\python\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Launcher\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Microsoft '\n 'VS '\n 'Code\\\\bin;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming\\\\npm')
_OLD_VIRTUAL_PROMPT
'$P$G'
__INTELLIJ_COMMAND_HISTFILE__
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\JetBrains\\\\PyCharm2021.3\\\\terminal\\\\history\\\\Rasaddam_Backend-history2'
wsgi.errors
<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
wsgi.file_wrapper
<class 'wsgiref.util.FileWrapper'>
wsgi.input
<django.core.handlers.wsgi.LimitedStream object at 0x000001C39D47F430>
wsgi.multiprocess
False
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
\n\n\n

Settings

\n

Using settings module Rasaddam_Backend.settings

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
SettingValue
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
[]
ALLOWED_HOSTS
['localhost', '127.0.0.1', 'https://rasadyar.net/', 'https://localhost:9200']
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS
'********************'
AUTH_USER_MODEL
'authentication.User'
BASE_DIR
WindowsPath('D:/Project/Rasaddam_Backend')
CACHES
{'default': {'BACKEND': 'django_redis.cache.RedisCache',\n             'KEY_PREFIX': '********************',\n             'LOCATION': 'redis://:ydnW4hwzuDRYcTX3FWCHgQ1f@apo.liara.cloud:33740/0',\n             'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}},\n 'memcache': {'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',\n              'LOCATION': '127.0.0.1:11211'}}
CACHE_MIDDLEWARE_ALIAS
'default'
CACHE_MIDDLEWARE_KEY_PREFIX
'********************'
CACHE_MIDDLEWARE_SECONDS
600
CORS_ALLOWED_ORIGINS
('http://localhost:8080',\n 'http://127.0.0.1:8080',\n 'http://127.0.0.1:3000',\n 'http://localhost:3000',\n 'https://rasadyar.net')
CORS_ORIGIN_ALLOW_ALL
True
CORS_ORIGIN_WHITELIST
('http://localhost:8080',\n 'http://127.0.0.1:8080',\n 'http://127.0.0.1:3000',\n 'http://localhost:3000',\n 'https://rasadyar.net')
CSRF_COOKIE_AGE
31449600
CSRF_COOKIE_DOMAIN
None
CSRF_COOKIE_HTTPONLY
False
CSRF_COOKIE_NAME
'csrftoken'
CSRF_COOKIE_PATH
'/'
CSRF_COOKIE_SAMESITE
'Lax'
CSRF_COOKIE_SECURE
False
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME
'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS
[]
CSRF_USE_SESSIONS
False
DATABASES
{'default': {'ATOMIC_REQUESTS': False,\n             'AUTOCOMMIT': True,\n             'CONN_HEALTH_CHECKS': False,\n             'CONN_MAX_AGE': 0,\n             'ENGINE': 'django.db.backends.postgresql_psycopg2',\n             'HOST': 'monte-rosa.liara.cloud',\n             'NAME': 'postgres',\n             'OPTIONS': {},\n             'PASSWORD': '********************',\n             'PORT': '32718',\n             'TEST': {'CHARSET': None,\n                      'COLLATION': None,\n                      'MIGRATE': True,\n                      'MIRROR': None,\n                      'NAME': None},\n             'TIME_ZONE': None,\n             'USER': 'root'}}
DATABASE_ROUTERS
[]
DATA_UPLOAD_MAX_MEMORY_SIZE
50242880
DATA_UPLOAD_MAX_NUMBER_FIELDS
1000
DATA_UPLOAD_MAX_NUMBER_FILES
100
DATETIME_FORMAT
'%Y-%m-%d %H:%M:%S'
DATETIME_INPUT_FORMATS
['%Y-%m-%d %H:%M:%S',\n '%Y-%m-%d %H:%M:%S.%f',\n '%Y-%m-%d %H:%M',\n '%m/%d/%Y %H:%M:%S',\n '%m/%d/%Y %H:%M:%S.%f',\n '%m/%d/%Y %H:%M',\n '%m/%d/%y %H:%M:%S',\n '%m/%d/%y %H:%M:%S.%f',\n '%m/%d/%y %H:%M']
DATE_FORMAT
'N j, Y'
DATE_INPUT_FORMATS
['%Y-%m-%d',\n '%m/%d/%Y',\n '%m/%d/%y',\n '%b %d %Y',\n '%b %d, %Y',\n '%d %b %Y',\n '%d %b, %Y',\n '%B %d %Y',\n '%B %d, %Y',\n '%d %B %Y',\n '%d %B, %Y']
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DECIMAL_SEPARATOR
'.'
DEFAULT_AUTO_FIELD
'django.db.models.BigAutoField'
DEFAULT_CHARSET
'utf-8'
DEFAULT_EXCEPTION_REPORTER
'django.views.debug.ExceptionReporter'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISALLOWED_USER_AGENTS
[]
ELASTICSEARCH_DSL
{'default': {'hosts': 'http://monte-rosa.liara.cloud:31157',\n             'http_auth': ('elastic', 'uYkiQ860vLW8DIbWpNjqtz2B')}}
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'localhost'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
''
EMAIL_PORT
25
EMAIL_SSL_CERTFILE
None
EMAIL_SSL_KEYFILE
'********************'
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_TIMEOUT
None
EMAIL_USE_LOCALTIME
False
EMAIL_USE_SSL
False
EMAIL_USE_TLS
False
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
['django.core.files.uploadhandler.MemoryFileUploadHandler',\n 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
420
FILE_UPLOAD_TEMP_DIR
None
FIRST_DAY_OF_WEEK
0
FIXTURE_DIRS
[]
FORCE_SCRIPT_NAME
None
FORMAT_MODULE_PATH
None
FORMS_URLFIELD_ASSUME_HTTPS
False
FORM_RENDERER
'django.forms.renderers.DjangoTemplates'
IGNORABLE_404_URLS
[]
INSTALLED_APPS
['django.contrib.admin',\n 'django.contrib.auth',\n 'django.contrib.contenttypes',\n 'django.contrib.sessions',\n 'django.contrib.messages',\n 'django.contrib.staticfiles',\n 'django_elasticsearch_dsl',\n 'django_elasticsearch_dsl_drf',\n 'rest_framework',\n 'corsheaders',\n 'rest_framework_simplejwt',\n 'rest_framework_simplejwt.token_blacklist',\n 'apps.authentication.apps.AuthenticationConfig',\n 'apps.authorization.apps.AuthorizationConfig',\n 'apps.captcha_app.apps.CaptchaAppConfig',\n 'apps.core.apps.CoreConfig',\n 'apps.herd.apps.HerdAppConfig',\n 'apps.livestock.apps.LivestockConfig',\n 'apps.pos_machine.apps.PosMachineConfig',\n 'apps.tag.apps.TagConfig',\n 'apps.warehouse.apps.WarehouseConfig',\n 'apps.search.apps.SearchConfig',\n 'apps.log.apps.LogConfig',\n 'rest_captcha',\n 'captcha',\n 'drf_yasg']
INTERNAL_IPS
[]
LANGUAGES
[('af', 'Afrikaans'),\n ('ar', 'Arabic'),\n ('ar-dz', 'Algerian Arabic'),\n ('ast', 'Asturian'),\n ('az', 'Azerbaijani'),\n ('bg', 'Bulgarian'),\n ('be', 'Belarusian'),\n ('bn', 'Bengali'),\n ('br', 'Breton'),\n ('bs', 'Bosnian'),\n ('ca', 'Catalan'),\n ('ckb', 'Central Kurdish (Sorani)'),\n ('cs', 'Czech'),\n ('cy', 'Welsh'),\n ('da', 'Danish'),\n ('de', 'German'),\n ('dsb', 'Lower Sorbian'),\n ('el', 'Greek'),\n ('en', 'English'),\n ('en-au', 'Australian English'),\n ('en-gb', 'British English'),\n ('eo', 'Esperanto'),\n ('es', 'Spanish'),\n ('es-ar', 'Argentinian Spanish'),\n ('es-co', 'Colombian Spanish'),\n ('es-mx', 'Mexican Spanish'),\n ('es-ni', 'Nicaraguan Spanish'),\n ('es-ve', 'Venezuelan Spanish'),\n ('et', 'Estonian'),\n ('eu', 'Basque'),\n ('fa', 'Persian'),\n ('fi', 'Finnish'),\n ('fr', 'French'),\n ('fy', 'Frisian'),\n ('ga', 'Irish'),\n ('gd', 'Scottish Gaelic'),\n ('gl', 'Galician'),\n ('he', 'Hebrew'),\n ('hi', 'Hindi'),\n ('hr', 'Croatian'),\n ('hsb', 'Upper Sorbian'),\n ('hu', 'Hungarian'),\n ('hy', 'Armenian'),\n ('ia', 'Interlingua'),\n ('id', 'Indonesian'),\n ('ig', 'Igbo'),\n ('io', 'Ido'),\n ('is', 'Icelandic'),\n ('it', 'Italian'),\n ('ja', 'Japanese'),\n ('ka', 'Georgian'),\n ('kab', 'Kabyle'),\n ('kk', 'Kazakh'),\n ('km', 'Khmer'),\n ('kn', 'Kannada'),\n ('ko', 'Korean'),\n ('ky', 'Kyrgyz'),\n ('lb', 'Luxembourgish'),\n ('lt', 'Lithuanian'),\n ('lv', 'Latvian'),\n ('mk', 'Macedonian'),\n ('ml', 'Malayalam'),\n ('mn', 'Mongolian'),\n ('mr', 'Marathi'),\n ('ms', 'Malay'),\n ('my', 'Burmese'),\n ('nb', 'Norwegian Bokm\u00e5l'),\n ('ne', 'Nepali'),\n ('nl', 'Dutch'),\n ('nn', 'Norwegian Nynorsk'),\n ('os', 'Ossetic'),\n ('pa', 'Punjabi'),\n ('pl', 'Polish'),\n ('pt', 'Portuguese'),\n ('pt-br', 'Brazilian Portuguese'),\n ('ro', 'Romanian'),\n ('ru', 'Russian'),\n ('sk', 'Slovak'),\n ('sl', 'Slovenian'),\n ('sq', 'Albanian'),\n ('sr', 'Serbian'),\n ('sr-latn', 'Serbian Latin'),\n ('sv', 'Swedish'),\n ('sw', 'Swahili'),\n ('ta', 'Tamil'),\n ('te', 'Telugu'),\n ('tg', 'Tajik'),\n ('th', 'Thai'),\n ('tk', 'Turkmen'),\n ('tr', 'Turkish'),\n ('tt', 'Tatar'),\n ('udm', 'Udmurt'),\n ('ug', 'Uyghur'),\n ('uk', 'Ukrainian'),\n ('ur', 'Urdu'),\n ('uz', 'Uzbek'),\n ('vi', 'Vietnamese'),\n ('zh-hans', 'Simplified Chinese'),\n ('zh-hant', 'Traditional Chinese')]
LANGUAGES_BIDI
['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ug', 'ur']
LANGUAGE_CODE
'en-us'
LANGUAGE_COOKIE_AGE
None
LANGUAGE_COOKIE_DOMAIN
None
LANGUAGE_COOKIE_HTTPONLY
False
LANGUAGE_COOKIE_NAME
'django_language'
LANGUAGE_COOKIE_PATH
'/'
LANGUAGE_COOKIE_SAMESITE
None
LANGUAGE_COOKIE_SECURE
False
LOCALE_PATHS
[]
LOGGING
{}
LOGGING_CONFIG
'logging.config.dictConfig'
LOGIN_REDIRECT_URL
'/accounts/profile/'
LOGIN_URL
'rest_framework:login'
LOGOUT_REDIRECT_URL
None
LOGOUT_URL
'rest_framework:logout'
MANAGERS
[]
MEDIA_ROOT
''
MEDIA_URL
'/'
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE
['django.middleware.security.SecurityMiddleware',\n 'django.contrib.sessions.middleware.SessionMiddleware',\n 'django.middleware.common.CommonMiddleware',\n 'django.middleware.csrf.CsrfViewMiddleware',\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n 'django.contrib.messages.middleware.MessageMiddleware',\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\n 'crum.CurrentRequestUserMiddleware',\n 'apps.log.middlewares.SaveLog']
MIGRATION_MODULES
{}
MONGODB_DATABASES
{'default': {'host': '', 'name': 'mongodb', 'tz_aware': True}}
MONTH_DAY_FORMAT
'F j'
NUMBER_GROUPING
0
PASSWORD_HASHERS
'********************'
PASSWORD_RESET_TIMEOUT
'********************'
PREPEND_WWW
False
REST_CAPTCHA
{'CAPTCHA_BACKGROUND_COLOR': '#ffffff',\n 'CAPTCHA_CACHE': 'default',\n 'CAPTCHA_CACHE_KEY': '********************',\n 'CAPTCHA_FONT_SIZE': 35,\n 'CAPTCHA_FOREGROUND_COLOR': '#000000',\n 'CAPTCHA_IMAGE_SIZE': (90, 20),\n 'CAPTCHA_LENGTH': 6,\n 'CAPTCHA_LETTER_ROTATION': (-35, 35),\n 'CAPTCHA_TIMEOUT': 300,\n 'FILTER_FUNCTION': 'rest_captcha.captcha.filter_default',\n 'NOISE_FUNCTION': 'apps.captcha_app.api.v1.serializers.noise_default'}
REST_FRAMEWORK
{'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_simplejwt.authentication.JWTAuthentication',\n                                    'rest_framework.authentication.SessionAuthentication',\n                                    'rest_framework.authentication.BasicAuthentication'),\n 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',\n 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),\n 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema',\n 'PAGE_SIZE': 25}
ROOT_URLCONF
'Rasaddam_Backend.urls'
SECRET_KEY
'********************'
SECRET_KEY_FALLBACKS
'********************'
SECURE_CONTENT_TYPE_NOSNIFF
True
SECURE_CROSS_ORIGIN_OPENER_POLICY
'same-origin'
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
SECURE_HSTS_PRELOAD
False
SECURE_HSTS_SECONDS
0
SECURE_PROXY_SSL_HEADER
('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_REDIRECT_EXEMPT
[]
SECURE_REFERRER_POLICY
'same-origin'
SECURE_SSL_HOST
None
SECURE_SSL_REDIRECT
False
SERVER_EMAIL
'root@localhost'
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_HTTPONLY
True
SESSION_COOKIE_NAME
'sessionid'
SESSION_COOKIE_PATH
'/'
SESSION_COOKIE_SAMESITE
'Lax'
SESSION_COOKIE_SECURE
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
False
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE
'Rasaddam_Backend.settings'
SHORT_DATETIME_FORMAT
'm/d/Y P'
SHORT_DATE_FORMAT
'm/d/Y'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS
[]
SIMPLE_JWT
{'ACCESS_TOKEN_LIFETIME': '********************',\n 'ALGORITHM': 'HS256',\n 'AUDIENCE': None,\n 'AUTH_HEADER_NAME': 'HTTP_AUTHORIZATION',\n 'AUTH_HEADER_TYPES': ('Bearer',),\n 'AUTH_TOKEN_CLASSES': '********************',\n 'BLACKLIST_AFTER_ROTATION': False,\n 'ISSUER': None,\n 'JSON_ENCODER': None,\n 'JTI_CLAIM': 'jti',\n 'JWK_URL': None,\n 'LEEWAY': 0,\n 'REFRESH_TOKEN_LIFETIME': '********************',\n 'ROTATE_REFRESH_TOKENS': '********************',\n 'SIGNING_KEY': '********************',\n 'SLIDING_TOKEN_LIFETIME': '********************',\n 'SLIDING_TOKEN_OBTAIN_SERIALIZER': '********************',\n 'SLIDING_TOKEN_REFRESH_EXP_CLAIM': '********************',\n 'SLIDING_TOKEN_REFRESH_LIFETIME': '********************',\n 'SLIDING_TOKEN_REFRESH_SERIALIZER': '********************',\n 'TOKEN_BLACKLIST_SERIALIZER': '********************',\n 'TOKEN_OBTAIN_SERIALIZER': '********************',\n 'TOKEN_REFRESH_SERIALIZER': '********************',\n 'TOKEN_TYPE_CLAIM': '********************',\n 'TOKEN_USER_CLASS': '********************',\n 'TOKEN_VERIFY_SERIALIZER': '********************',\n 'UPDATE_LAST_LOGIN': False,\n 'USER_AUTHENTICATION_RULE': 'rest_framework_simplejwt.authentication.default_user_authentication_rule',\n 'USER_ID_CLAIM': 'user_id',\n 'USER_ID_FIELD': 'id',\n 'VERIFYING_KEY': '********************'}
STATICFILES_DIRS
[]
STATICFILES_FINDERS
['django.contrib.staticfiles.finders.FileSystemFinder',\n 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT
None
STATIC_URL
'/static/'
STORAGES
{'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'},\n 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}}
SWAGGER_SETTINGS
{'SECURITY_DEFINITIONS': {'Bearer': {'in': 'header',\n                                     'name': 'Authorization',\n                                     'type': 'apiKey'},\n                          'basic': {'type': 'basic'}},\n 'USE_SESSION_AUTH': True}
TEMPLATES
[{'APP_DIRS': True,\n  'BACKEND': 'django.template.backends.django.DjangoTemplates',\n  'DIRS': [],\n  'OPTIONS': {'context_processors': ['django.template.context_processors.request',\n                                     'django.contrib.auth.context_processors.auth',\n                                     'django.contrib.messages.context_processors.messages']}}]
TEST_NON_SERIALIZED_APPS
[]
TEST_RUNNER
'django.test.runner.DiscoverRunner'
THOUSAND_SEPARATOR
','
TIME_FORMAT
'P'
TIME_INPUT_FORMATS
['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE
'UTC'
USE_I18N
True
USE_THOUSAND_SEPARATOR
False
USE_TZ
True
USE_X_FORWARDED_HOST
False
USE_X_FORWARDED_PORT
False
WSGI_APPLICATION
'Rasaddam_Backend.wsgi.application'
X_FRAME_OPTIONS
'DENY'
YEAR_MONTH_FORMAT
'F Y'
\n\n
\n\n
\n

\n You\u2019re seeing this error because you have DEBUG = True in your\n Django settings file. Change that to False, and Django will\n display a standard page generated by the handler for this status code.\n

\n
\n\n\n\n", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:57:42.796790", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "6": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 314, "body_response": "{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 10:59:18.573270", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "7": {"endpoint": "/livestock/web/api/v1/livestock_species/1/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 2171, "body_response": "{\"id\":1,\"name\":\"2\u06af\u0648\u0633\u0641\u0646\u062f\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:00:58.014338", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "8": {"endpoint": "/livestock/web/api/v1/livestock_species/1/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 334, "body_response": "{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:01:10.637178", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "9": {"endpoint": "/livestock/web/api/v1/livestock_species/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 284, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:30:28.976392", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "10": {"endpoint": "/livestock/web/api/v1/livestock_type/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 313, "body_response": "{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:37:21.437666", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "11": {"endpoint": "/livestock/web/api/v1/livestock_type/1/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 337, "body_response": "{\"id\":1,\"name\":\"2\u06af\u0648\u0633\u0641\u0646\u062f\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:37:54.358753", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "12": {"endpoint": "/livestock/web/api/v1/livestock_type/1/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 329, "body_response": "{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:37:59.053979", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "13": {"endpoint": "/livestock/web/api/v1/livestock_type/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 271, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:48:52.800785", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "14": {"endpoint": "/livestock/web/api/v1/livestock_use_type/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 337, "body_response": "{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:54:54.867935", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "15": {"endpoint": "/livestock/web/api/v1/livestock_use_type/1/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 308, "body_response": "{\"id\":1,\"name\":\"1\u0634\u06cc\u0631\u06cc\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:55:27.720915", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "16": {"endpoint": "/livestock/web/api/v1/livestock_use_type/1/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 280, "body_response": "{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:55:35.257357", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "17": {"endpoint": "/livestock/web/api/v1/livestock_use_type/1/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 253, "body_response": "{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:56:22.583811", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "18": {"endpoint": "/livestock/web/api/v1/livestock_use_type/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 286, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 11:56:27.092421", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "19": {"endpoint": "/tag/web/api/v1/tag/", "response_code": 404, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 31, "body_response": "\n\n\n \n Page not found at /tag/web/api/v1/tag/\n \n \n\n\n
\n

Page not found (404)

\n \n \n \n \n \n \n \n \n \n \n \n
Request Method:POST
Request URL:http://127.0.0.1:8000/tag/web/api/v1/tag/
\n
\n
\n \n

\n Using the URLconf defined in Rasaddam_Backend.urls,\n Django tried these URL patterns, in this order:\n

\n
    \n \n
  1. \n \n admin/\n \n \n
  2. \n \n
  3. \n \n api-auth/\n \n \n
  4. \n \n
  5. \n \n auth/\n \n \n
  6. \n \n
  7. \n \n auth/\n \n \n
  8. \n \n
  9. \n \n \n \n \n captcha/\n [name='captcha']\n \n
  10. \n \n
  11. \n \n \n \n \n core/\n \n \n
  12. \n \n
  13. \n \n herd/\n \n \n
  14. \n \n
  15. \n \n livestock/\n \n \n
  16. \n \n
  17. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/$\n [name='livestock-list']\n \n
  18. \n \n
  19. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock-list']\n \n
  20. \n \n
  21. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/(?P<pk>[^/.]+)/$\n [name='livestock-detail']\n \n
  22. \n \n
  23. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock-detail']\n \n
  24. \n \n
  25. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/$\n [name='livestock_type-list']\n \n
  26. \n \n
  27. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-list']\n \n
  28. \n \n
  29. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/$\n [name='livestock_type-detail']\n \n
  30. \n \n
  31. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-detail']\n \n
  32. \n \n
  33. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/delete/$\n [name='livestock_type-delete']\n \n
  34. \n \n
  35. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-delete']\n \n
  36. \n \n
  37. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/trash/$\n [name='livestock_type-trash']\n \n
  38. \n \n
  39. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-trash']\n \n
  40. \n \n
  41. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/$\n [name='livestock_use_type-list']\n \n
  42. \n \n
  43. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-list']\n \n
  44. \n \n
  45. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/$\n [name='livestock_use_type-detail']\n \n
  46. \n \n
  47. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-detail']\n \n
  48. \n \n
  49. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/delete/$\n [name='livestock_use_type-delete']\n \n
  50. \n \n
  51. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-delete']\n \n
  52. \n \n
  53. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/trash/$\n [name='livestock_use_type-trash']\n \n
  54. \n \n
  55. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-trash']\n \n
  56. \n \n
  57. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/$\n [name='livestock_species-list']\n \n
  58. \n \n
  59. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-list']\n \n
  60. \n \n
  61. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/$\n [name='livestock_species-detail']\n \n
  62. \n \n
  63. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-detail']\n \n
  64. \n \n
  65. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/delete/$\n [name='livestock_species-delete']\n \n
  66. \n \n
  67. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-delete']\n \n
  68. \n \n
  69. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/trash/$\n [name='livestock_species-trash']\n \n
  70. \n \n
  71. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-trash']\n \n
  72. \n \n
  73. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n \n [name='api-root']\n \n
  74. \n \n
  75. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n <drf_format_suffix:format>\n [name='api-root']\n \n
  76. \n \n
  77. \n \n search/\n \n \n
  78. \n \n
  79. \n \n swagger/\n [name='schema-swagger-ui']\n \n
  80. \n \n
\n

\n \n The current path, tag/web/api/v1/tag/,\n \n didn\u2019t match any of these.\n

\n \n
\n\n
\n

\n You\u2019re seeing this error because you have DEBUG = True in\n your Django settings file. Change that to False, and Django\n will display a standard 404 page.\n

\n
\n\n\n", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:34:24.332883"}, "20": {"endpoint": "/tag/web/api/v1/tag/", "response_code": 404, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 13, "body_response": "\n\n\n \n Page not found at /tag/web/api/v1/tag/\n \n \n\n\n
\n

Page not found (404)

\n \n \n \n \n \n \n \n \n \n \n \n
Request Method:POST
Request URL:http://127.0.0.1:8000/tag/web/api/v1/tag/
\n
\n
\n \n

\n Using the URLconf defined in Rasaddam_Backend.urls,\n Django tried these URL patterns, in this order:\n

\n
    \n \n
  1. \n \n admin/\n \n \n
  2. \n \n
  3. \n \n api-auth/\n \n \n
  4. \n \n
  5. \n \n auth/\n \n \n
  6. \n \n
  7. \n \n auth/\n \n \n
  8. \n \n
  9. \n \n \n \n \n captcha/\n [name='captcha']\n \n
  10. \n \n
  11. \n \n \n \n \n core/\n \n \n
  12. \n \n
  13. \n \n herd/\n \n \n
  14. \n \n
  15. \n \n livestock/\n \n \n
  16. \n \n
  17. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/$\n [name='livestock-list']\n \n
  18. \n \n
  19. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock-list']\n \n
  20. \n \n
  21. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/(?P<pk>[^/.]+)/$\n [name='livestock-detail']\n \n
  22. \n \n
  23. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock-detail']\n \n
  24. \n \n
  25. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/$\n [name='livestock_type-list']\n \n
  26. \n \n
  27. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-list']\n \n
  28. \n \n
  29. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/$\n [name='livestock_type-detail']\n \n
  30. \n \n
  31. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-detail']\n \n
  32. \n \n
  33. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/delete/$\n [name='livestock_type-delete']\n \n
  34. \n \n
  35. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-delete']\n \n
  36. \n \n
  37. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/trash/$\n [name='livestock_type-trash']\n \n
  38. \n \n
  39. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-trash']\n \n
  40. \n \n
  41. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/$\n [name='livestock_use_type-list']\n \n
  42. \n \n
  43. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-list']\n \n
  44. \n \n
  45. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/$\n [name='livestock_use_type-detail']\n \n
  46. \n \n
  47. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-detail']\n \n
  48. \n \n
  49. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/delete/$\n [name='livestock_use_type-delete']\n \n
  50. \n \n
  51. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-delete']\n \n
  52. \n \n
  53. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/trash/$\n [name='livestock_use_type-trash']\n \n
  54. \n \n
  55. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-trash']\n \n
  56. \n \n
  57. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/$\n [name='livestock_species-list']\n \n
  58. \n \n
  59. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-list']\n \n
  60. \n \n
  61. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/$\n [name='livestock_species-detail']\n \n
  62. \n \n
  63. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-detail']\n \n
  64. \n \n
  65. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/delete/$\n [name='livestock_species-delete']\n \n
  66. \n \n
  67. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-delete']\n \n
  68. \n \n
  69. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/trash/$\n [name='livestock_species-trash']\n \n
  70. \n \n
  71. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-trash']\n \n
  72. \n \n
  73. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n \n [name='api-root']\n \n
  74. \n \n
  75. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n <drf_format_suffix:format>\n [name='api-root']\n \n
  76. \n \n
  77. \n \n search/\n \n \n
  78. \n \n
  79. \n \n swagger/\n [name='schema-swagger-ui']\n \n
  80. \n \n
\n

\n \n The current path, tag/web/api/v1/tag/,\n \n didn\u2019t match any of these.\n

\n \n
\n\n
\n

\n You\u2019re seeing this error because you have DEBUG = True in\n your Django settings file. Change that to False, and Django\n will display a standard 404 page.\n

\n
\n\n\n", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:35:36.172718"}, "21": {"endpoint": "/tag/web/api/v1/tag/", "response_code": 404, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 14, "body_response": "\n\n\n \n Page not found at /tag/web/api/v1/tag/\n \n \n\n\n
\n

Page not found (404)

\n \n \n \n \n \n \n \n \n \n \n \n
Request Method:POST
Request URL:http://127.0.0.1:8000/tag/web/api/v1/tag/
\n
\n
\n \n

\n Using the URLconf defined in Rasaddam_Backend.urls,\n Django tried these URL patterns, in this order:\n

\n
    \n \n
  1. \n \n admin/\n \n \n
  2. \n \n
  3. \n \n api-auth/\n \n \n
  4. \n \n
  5. \n \n auth/\n \n \n
  6. \n \n
  7. \n \n auth/\n \n \n
  8. \n \n
  9. \n \n \n \n \n captcha/\n [name='captcha']\n \n
  10. \n \n
  11. \n \n \n \n \n core/\n \n \n
  12. \n \n
  13. \n \n herd/\n \n \n
  14. \n \n
  15. \n \n livestock/\n \n \n
  16. \n \n
  17. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/$\n [name='livestock-list']\n \n
  18. \n \n
  19. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock-list']\n \n
  20. \n \n
  21. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/(?P<pk>[^/.]+)/$\n [name='livestock-detail']\n \n
  22. \n \n
  23. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock-detail']\n \n
  24. \n \n
  25. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/$\n [name='livestock_type-list']\n \n
  26. \n \n
  27. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-list']\n \n
  28. \n \n
  29. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/$\n [name='livestock_type-detail']\n \n
  30. \n \n
  31. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-detail']\n \n
  32. \n \n
  33. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/delete/$\n [name='livestock_type-delete']\n \n
  34. \n \n
  35. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-delete']\n \n
  36. \n \n
  37. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/trash/$\n [name='livestock_type-trash']\n \n
  38. \n \n
  39. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_type/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_type-trash']\n \n
  40. \n \n
  41. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/$\n [name='livestock_use_type-list']\n \n
  42. \n \n
  43. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-list']\n \n
  44. \n \n
  45. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/$\n [name='livestock_use_type-detail']\n \n
  46. \n \n
  47. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-detail']\n \n
  48. \n \n
  49. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/delete/$\n [name='livestock_use_type-delete']\n \n
  50. \n \n
  51. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-delete']\n \n
  52. \n \n
  53. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/trash/$\n [name='livestock_use_type-trash']\n \n
  54. \n \n
  55. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_use_type/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_use_type-trash']\n \n
  56. \n \n
  57. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/$\n [name='livestock_species-list']\n \n
  58. \n \n
  59. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-list']\n \n
  60. \n \n
  61. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/$\n [name='livestock_species-detail']\n \n
  62. \n \n
  63. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-detail']\n \n
  64. \n \n
  65. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/delete/$\n [name='livestock_species-delete']\n \n
  66. \n \n
  67. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/delete\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-delete']\n \n
  68. \n \n
  69. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/trash/$\n [name='livestock_species-trash']\n \n
  70. \n \n
  71. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n ^livestock_species/(?P<pk>[^/.]+)/trash\\.(?P<format>[a-z0-9]+)/?$\n [name='livestock_species-trash']\n \n
  72. \n \n
  73. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n \n [name='api-root']\n \n
  74. \n \n
  75. \n \n tag/\n \n \n web/api/\n \n \n v1/\n \n \n <drf_format_suffix:format>\n [name='api-root']\n \n
  76. \n \n
  77. \n \n search/\n \n \n
  78. \n \n
  79. \n \n swagger/\n [name='schema-swagger-ui']\n \n
  80. \n \n
\n

\n \n The current path, tag/web/api/v1/tag/,\n \n didn\u2019t match any of these.\n

\n \n
\n\n
\n

\n You\u2019re seeing this error because you have DEBUG = True in\n your Django settings file. Change that to False, and Django\n will display a standard 404 page.\n

\n
\n\n\n", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:36:18.386056"}, "22": {"endpoint": "/tag/web/api/v1/tag/", "response_code": 400, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 299, "body_response": "{\"organization\":[\"Invalid pk \\\"8\\\" - object does not exist.\"]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:37:03.759397", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "23": {"endpoint": "/tag/web/api/v1/tag/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 383, "body_response": "{\"id\":1,\"create_date\":\"2025-05-24T09:07:39.682557Z\",\"modify_date\":\"2025-05-24T09:07:39.682557Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"code\":\"256666\",\"status\":\"active\",\"created_by\":2,\"modified_by\":2,\"province\":1,\"city\":1,\"organization\":1}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:37:39.745368", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "24": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 401, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 0, "body_response": "{\"detail\":\"Authentication credentials were not provided.\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:42:00.918202"}, "25": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 400, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 432, "body_response": "{\"birthdate\":[\"Datetime has wrong format. Use one of these formats instead: YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z].\"]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:42:08.159894", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "26": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 500, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 608, "body_response": "\n\n\n \n \n IntegrityError\n at /livestock/web/api/v1/livestock/\n \n \n \n \n\n\n
\n

IntegrityError\n at /livestock/web/api/v1/livestock/

\n
null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n
\n \n\n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n\n \n \n \n \n\n\n \n \n \n \n\n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Request Method:POST
Request URL:http://127.0.0.1:8000/livestock/web/api/v1/livestock/
Django Version:5.0
Exception Type:IntegrityError
Exception Value:
null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n
Exception Location:D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute
Raised during:apps.livestock.web.api.v1.api.LiveStockViewSet
Python Executable:D:\\Software\\env\\Scripts\\python.exe
Python Version:3.12.0
Python Path:
['D:\\\\Project\\\\Rasaddam_Backend',\n 'D:\\\\Software\\\\python-3.12.0\\\\python312.zip',\n 'D:\\\\Software\\\\python-3.12.0\\\\DLLs',\n 'D:\\\\Software\\\\python-3.12.0\\\\Lib',\n 'D:\\\\Software\\\\python-3.12.0',\n 'D:\\\\Software\\\\env',\n 'D:\\\\Software\\\\env\\\\Lib\\\\site-packages',\n 'D:\\\\Software\\\\env\\\\Lib\\\\site-packages\\\\setuptools\\\\_vendor']
Server time:Sat, 24 May 2025 09:12:29 +0000
\n
\n\n\n\n\n
\n

Traceback \n Switch to copy-and-paste view\n

\n
\n
    \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute\n \n\n \n
    \n \n
      \n \n
    1.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    2. \n \n
    3.         self.db.validate_no_broken_transaction()
    4. \n \n
    5.         with self.db.wrap_database_errors:
    6. \n \n
    7.             if params is None:
    8. \n \n
    9.                 # params default might be backend specific.
    10. \n \n
    11.                 return self.cursor.execute(sql)
    12. \n \n
    13.             else:
    14. \n \n
    \n \n
      \n
    1.                 return self.cursor.execute(sql, params)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def _executemany(self, sql, param_list, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ignored_wrapper_args
    (False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n  'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>})
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n The above exception (null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\nDETAIL: Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\n) was the direct cause of the following exception:\n \n

  • \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\core\\handlers\\exception.py, line 55, in inner\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         return inner
    3. \n \n
    4.     else:
    5. \n \n
    6. \n \n
    7.         @wraps(get_response)
    8. \n \n
    9.         def inner(request):
    10. \n \n
    11.             try:
    12. \n \n
    \n \n
      \n
    1.                 response = get_response(request)\n                               ^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             except Exception as exc:
    2. \n \n
    3.                 response = response_for_exception(request, exc)
    4. \n \n
    5.             return response
    6. \n \n
    7. \n \n
    8.         return inner
    9. \n \n
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    exc
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    get_response
    <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x000002D97EE33080>>
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock/'>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\core\\handlers\\base.py, line 197, in _get_response\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         if response is None:
    3. \n \n
    4.             wrapped_callback = self.make_view_atomic(callback)
    5. \n \n
    6.             # If it is an asynchronous view, run it in a subthread.
    7. \n \n
    8.             if iscoroutinefunction(wrapped_callback):
    9. \n \n
    10.                 wrapped_callback = async_to_sync(wrapped_callback)
    11. \n \n
    12.             try:
    13. \n \n
    \n \n
      \n
    1.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             except Exception as e:
    2. \n \n
    3.                 response = self.process_exception_by_middleware(e, request)
    4. \n \n
    5.                 if response is None:
    6. \n \n
    7.                     raise
    8. \n \n
    9. \n \n
    10.         # Complain if the view returned None (a common error).
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    callback
    <function LiveStockViewSet at 0x000002D9027FA700>
    callback_args
    ()
    callback_kwargs
    {}
    middleware_method
    <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>>
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock/'>
    response
    None
    self
    <django.core.handlers.wsgi.WSGIHandler object at 0x000002D97EE33080>
    wrapped_callback
    <function LiveStockViewSet at 0x000002D9027FA700>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\views\\decorators\\csrf.py, line 65, in _view_wrapper\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         async def _view_wrapper(request, *args, **kwargs):
    3. \n \n
    4.             return await view_func(request, *args, **kwargs)
    5. \n \n
    6. \n \n
    7.     else:
    8. \n \n
    9. \n \n
    10.         def _view_wrapper(request, *args, **kwargs):
    11. \n \n
    \n \n
      \n
    1.             return view_func(request, *args, **kwargs)\n                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     _view_wrapper.csrf_exempt = True
    3. \n \n
    4. \n \n
    5.     return wraps(view_func)(_view_wrapper)
    6. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    kwargs
    {}
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock/'>
    view_func
    <function LiveStockViewSet at 0x000002D9027FA660>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\viewsets.py, line 125, in view\n \n\n \n
    \n \n
      \n \n
    1.                 setattr(self, method, handler)
    2. \n \n
    3. \n \n
    4.             self.request = request
    5. \n \n
    6.             self.args = args
    7. \n \n
    8.             self.kwargs = kwargs
    9. \n \n
    10. \n \n
    11.             # And continue as usual
    12. \n \n
    \n \n
      \n
    1.             return self.dispatch(request, *args, **kwargs)\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         # take name and docstring from class
    3. \n \n
    4.         update_wrapper(view, cls, updated=())
    5. \n \n
    6. \n \n
    7.         # and possible attributes set by decorators
    8. \n \n
    9.         # like csrf_exempt from dispatch
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    action
    'list'
    actions
    {'get': 'list', 'head': 'list', 'post': 'create'}
    args
    ()
    cls
    <class 'apps.livestock.web.api.v1.api.LiveStockViewSet'>
    handler
    <bound method ListModelMixin.list of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>>
    initkwargs
    {'basename': 'livestock', 'detail': False, 'suffix': 'List'}
    kwargs
    {}
    method
    'head'
    request
    <WSGIRequest: POST '/livestock/web/api/v1/livestock/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 515, in dispatch\n \n\n \n
    \n \n
      \n \n
    1.                                   self.http_method_not_allowed)
    2. \n \n
    3.             else:
    4. \n \n
    5.                 handler = self.http_method_not_allowed
    6. \n \n
    7. \n \n
    8.             response = handler(request, *args, **kwargs)
    9. \n \n
    10. \n \n
    11.         except Exception as exc:
    12. \n \n
    \n \n
      \n
    1.             response = self.handle_exception(exc)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         self.response = self.finalize_response(request, response, *args, **kwargs)
    3. \n \n
    4.         return self.response
    5. \n \n
    6. \n \n
    7.     def options(self, request, *args, **kwargs):
    8. \n \n
    9.         """
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    handler
    <bound method CreateModelMixin.create of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>>
    kwargs
    {}
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 475, in handle_exception\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         exception_handler = self.get_exception_handler()
    3. \n \n
    4. \n \n
    5.         context = self.get_exception_handler_context()
    6. \n \n
    7.         response = exception_handler(exc, context)
    8. \n \n
    9. \n \n
    10.         if response is None:
    11. \n \n
    \n \n
      \n
    1.             self.raise_uncaught_exception(exc)\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         response.exception = True
    3. \n \n
    4.         return response
    5. \n \n
    6. \n \n
    7.     def raise_uncaught_exception(self, exc):
    8. \n \n
    9.         if settings.DEBUG:
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    context
    {'args': (),\n 'kwargs': {},\n 'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>,\n 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>}
    exc
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    exception_handler
    <function exception_handler at 0x000002D9024BDE40>
    response
    None
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 486, in raise_uncaught_exception\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.     def raise_uncaught_exception(self, exc):
    3. \n \n
    4.         if settings.DEBUG:
    5. \n \n
    6.             request = self.request
    7. \n \n
    8.             renderer_format = getattr(request.accepted_renderer, 'format')
    9. \n \n
    10.             use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')
    11. \n \n
    12.             request.force_plaintext_errors(use_plaintext_traceback)
    13. \n \n
    \n \n
      \n
    1.         raise exc\n             ^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     # Note: Views are made CSRF exempt from within `as_view` as to prevent
    3. \n \n
    4.     # accidental removal of this exemption in cases where `dispatch` needs to
    5. \n \n
    6.     # be overridden.
    7. \n \n
    8.     def dispatch(self, request, *args, **kwargs):
    9. \n \n
    10.         """
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    exc
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    renderer_format
    'json'
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    use_plaintext_traceback
    True
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\views.py, line 512, in dispatch\n \n\n \n
    \n \n
      \n \n
    1.             # Get the appropriate handler method
    2. \n \n
    3.             if request.method.lower() in self.http_method_names:
    4. \n \n
    5.                 handler = getattr(self, request.method.lower(),
    6. \n \n
    7.                                   self.http_method_not_allowed)
    8. \n \n
    9.             else:
    10. \n \n
    11.                 handler = self.http_method_not_allowed
    12. \n \n
    13. \n \n
    \n \n
      \n
    1.             response = handler(request, *args, **kwargs)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.         except Exception as exc:
    3. \n \n
    4.             response = self.handle_exception(exc)
    5. \n \n
    6. \n \n
    7.         self.response = self.finalize_response(request, response, *args, **kwargs)
    8. \n \n
    9.         return self.response
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    handler
    <bound method CreateModelMixin.create of <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>>
    kwargs
    {}
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\mixins.py, line 19, in create\n \n\n \n
    \n \n
      \n \n
    1. class CreateModelMixin:
    2. \n \n
    3.     """
    4. \n \n
    5.     Create a model instance.
    6. \n \n
    7.     """
    8. \n \n
    9.     def create(self, request, *args, **kwargs):
    10. \n \n
    11.         serializer = self.get_serializer(data=request.data)
    12. \n \n
    13.         serializer.is_valid(raise_exception=True)
    14. \n \n
    \n \n
      \n
    1.         self.perform_create(serializer)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.         headers = self.get_success_headers(serializer.data)
    2. \n \n
    3.         return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
    4. \n \n
    5. \n \n
    6.     def perform_create(self, serializer):
    7. \n \n
    8.         serializer.save()
    9. \n \n
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    kwargs
    {}
    request
    <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    serializer
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'herd': 1, 'tag': 1, 'type': 1, 'use_type': 1, 'weight_type': 'L', 'species': 1, 'birthdate': '2025-05-13 08:56:51.644360 +00:00', 'gender': 2}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\mixins.py, line 24, in perform_create\n \n\n \n
    \n \n
      \n \n
    1.         serializer = self.get_serializer(data=request.data)
    2. \n \n
    3.         serializer.is_valid(raise_exception=True)
    4. \n \n
    5.         self.perform_create(serializer)
    6. \n \n
    7.         headers = self.get_success_headers(serializer.data)
    8. \n \n
    9.         return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers)
    10. \n \n
    11. \n \n
    12.     def perform_create(self, serializer):
    13. \n \n
    \n \n
      \n
    1.         serializer.save()\n            ^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def get_success_headers(self, data):
    3. \n \n
    4.         try:
    5. \n \n
    6.             return {'Location': str(data[api_settings.URL_FIELD_NAME])}
    7. \n \n
    8.         except (TypeError, KeyError):
    9. \n \n
    10.             return {}
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    self
    <apps.livestock.web.api.v1.api.LiveStockViewSet object at 0x000002D902B82C90>
    serializer
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'herd': 1, 'tag': 1, 'type': 1, 'use_type': 1, 'weight_type': 'L', 'species': 1, 'birthdate': '2025-05-13 08:56:51.644360 +00:00', 'gender': 2}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\serializers.py, line 210, in save\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.         if self.instance is not None:
    3. \n \n
    4.             self.instance = self.update(self.instance, validated_data)
    5. \n \n
    6.             assert self.instance is not None, (
    7. \n \n
    8.                 '`update()` did not return an object instance.'
    9. \n \n
    10.             )
    11. \n \n
    12.         else:
    13. \n \n
    \n \n
      \n
    1.             self.instance = self.create(validated_data)\n                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             assert self.instance is not None, (
    2. \n \n
    3.                 '`create()` did not return an object instance.'
    4. \n \n
    5.             )
    6. \n \n
    7. \n \n
    8.         return self.instance
    9. \n \n
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    kwargs
    {}
    self
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'herd': 1, 'tag': 1, 'type': 1, 'use_type': 1, 'weight_type': 'L', 'species': 1, 'birthdate': '2025-05-13 08:56:51.644360 +00:00', 'gender': 2}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    validated_data
    {'birthdate': datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 'gender': 2,\n 'herd': <Herd: \u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9-12542365>,\n 'species': <LiveStockSpecies: \u0644\u0631\u06cc>,\n 'tag': <Tag: 256666>,\n 'type': <LiveStockType: \u06af\u0648\u0633\u0641\u0646\u062f>,\n 'use_type': <LiveStockUseType: \u0634\u06cc\u0631\u06cc>,\n 'weight_type': 'L'}
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\rest_framework\\serializers.py, line 991, in create\n \n\n \n
    \n \n
      \n \n
    1.         info = model_meta.get_field_info(ModelClass)
    2. \n \n
    3.         many_to_many = {}
    4. \n \n
    5.         for field_name, relation_info in info.relations.items():
    6. \n \n
    7.             if relation_info.to_many and (field_name in validated_data):
    8. \n \n
    9.                 many_to_many[field_name] = validated_data.pop(field_name)
    10. \n \n
    11. \n \n
    12.         try:
    13. \n \n
    \n \n
      \n
    1.             instance = ModelClass._default_manager.create(**validated_data)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.         except TypeError:
    2. \n \n
    3.             tb = traceback.format_exc()
    4. \n \n
    5.             msg = (
    6. \n \n
    7.                 'Got a `TypeError` when calling `%s.%s.create()`. '
    8. \n \n
    9.                 'This may be because you have a writable field on the '
    10. \n \n
    11.                 'serializer class that is not a valid argument to '
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ModelClass
    <class 'apps.livestock.models.LiveStock'>
    field_name
    'species'
    info
    FieldInfo(pk=<django.db.models.fields.BigAutoField: id>, fields={'create_date': <django.db.models.fields.DateTimeField: create_date>, 'modify_date': <django.db.models.fields.DateTimeField: modify_date>, 'creator_info': <django.db.models.fields.CharField: creator_info>, 'modifier_info': <django.db.models.fields.CharField: modifier_info>, 'trash': <django.db.models.fields.BooleanField: trash>, 'weight_type': <django.db.models.fields.CharField: weight_type>, 'birthdate': <django.db.models.fields.DateTimeField: birthdate>, 'gender': <django.db.models.fields.IntegerField: gender>}, forward_relations={'created_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: created_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'modified_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: modified_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'herd': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: herd>, related_model=<class 'apps.herd.models.Herd'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'tag': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: tag>, related_model=<class 'apps.tag.models.Tag'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: type>, related_model=<class 'apps.livestock.models.LiveStockType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'use_type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: use_type>, related_model=<class 'apps.livestock.models.LiveStockUseType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'species': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: species>, related_model=<class 'apps.livestock.models.LiveStockSpecies'>, to_many=False, to_field='id', has_through_model=False, reverse=False)}, reverse_relations={}, fields_and_pk={'pk': <django.db.models.fields.BigAutoField: id>, 'id': <django.db.models.fields.BigAutoField: id>, 'create_date': <django.db.models.fields.DateTimeField: create_date>, 'modify_date': <django.db.models.fields.DateTimeField: modify_date>, 'creator_info': <django.db.models.fields.CharField: creator_info>, 'modifier_info': <django.db.models.fields.CharField: modifier_info>, 'trash': <django.db.models.fields.BooleanField: trash>, 'weight_type': <django.db.models.fields.CharField: weight_type>, 'birthdate': <django.db.models.fields.DateTimeField: birthdate>, 'gender': <django.db.models.fields.IntegerField: gender>}, relations={'created_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: created_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'modified_by': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: modified_by>, related_model=<class 'apps.authentication.models.User'>, to_many=False, to_field=None, has_through_model=False, reverse=False), 'herd': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: herd>, related_model=<class 'apps.herd.models.Herd'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'tag': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: tag>, related_model=<class 'apps.tag.models.Tag'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: type>, related_model=<class 'apps.livestock.models.LiveStockType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), 'use_type': RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: use_type>, related_model=<class 'apps.livestock.models.LiveStockUseType'>, to_many=False, to_field='id', has_through_model=False, reverse=False), '\u2026 <trimmed 4321 bytes string>
    many_to_many
    {}
    relation_info
    RelationInfo(model_field=<django.db.models.fields.related.ForeignKey: species>, related_model=<class 'apps.livestock.models.LiveStockSpecies'>, to_many=False, to_field='id', has_through_model=False, reverse=False)
    self
    LiveStockSerializer(context={'request': <rest_framework.request.Request: POST '/livestock/web/api/v1/livestock/'>, 'format': None, 'view': <apps.livestock.web.api.v1.api.LiveStockViewSet object>}, data={'herd': 1, 'tag': 1, 'type': 1, 'use_type': 1, 'weight_type': 'L', 'species': 1, 'birthdate': '2025-05-13 08:56:51.644360 +00:00', 'gender': 2}):\n    id = IntegerField(label='ID', read_only=True)\n    create_date = DateTimeField(read_only=True)\n    modify_date = DateTimeField(read_only=True)\n    creator_info = CharField(allow_null=True, max_length=100, required=False)\n    modifier_info = CharField(allow_null=True, max_length=100, required=False)\n    trash = BooleanField(required=False)\n    weight_type = ChoiceField(choices=[('L', 'Light'), ('H', 'Heavy')], required=False)\n    birthdate = DateTimeField(allow_null=True, required=False)\n    gender = ChoiceField(choices=[(1, 'male'), (2, 'female')], required=False, validators=[<django.core.validators.MinValueValidator object>, <django.core.validators.MaxValueValidator object>])\n    created_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    modified_by = PrimaryKeyRelatedField(allow_null=True, queryset=User.objects.all(), required=False)\n    herd = PrimaryKeyRelatedField(allow_null=True, queryset=Herd.objects.all(), required=False)\n    tag = PrimaryKeyRelatedField(allow_null=True, queryset=Tag.objects.all(), required=False)\n    type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockType.objects.all(), required=False)\n    use_type = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockUseType.objects.all(), required=False)\n    species = PrimaryKeyRelatedField(allow_null=True, queryset=LiveStockSpecies.objects.all(), required=False)
    validated_data
    {'birthdate': datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 'gender': 2,\n 'herd': <Herd: \u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9-12542365>,\n 'species': <LiveStockSpecies: \u0644\u0631\u06cc>,\n 'tag': <Tag: 256666>,\n 'type': <LiveStockType: \u06af\u0648\u0633\u0641\u0646\u062f>,\n 'use_type': <LiveStockUseType: \u0634\u06cc\u0631\u06cc>,\n 'weight_type': 'L'}
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\manager.py, line 87, in manager_method\n \n\n \n
    \n \n
      \n \n
    1.         return []
    2. \n \n
    3. \n \n
    4.     @classmethod
    5. \n \n
    6.     def _get_queryset_methods(cls, queryset_class):
    7. \n \n
    8.         def create_method(name, method):
    9. \n \n
    10.             @wraps(method)
    11. \n \n
    12.             def manager_method(self, *args, **kwargs):
    13. \n \n
    \n \n
      \n
    1.                 return getattr(self.get_queryset(), name)(*args, **kwargs)\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.             return manager_method
    3. \n \n
    4. \n \n
    5.         new_methods = {}
    6. \n \n
    7.         for name, method in inspect.getmembers(
    8. \n \n
    9.             queryset_class, predicate=inspect.isfunction
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ()
    kwargs
    {'birthdate': datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 'gender': 2,\n 'herd': <Herd: \u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9-12542365>,\n 'species': <LiveStockSpecies: \u0644\u0631\u06cc>,\n 'tag': <Tag: 256666>,\n 'type': <LiveStockType: \u06af\u0648\u0633\u0641\u0646\u062f>,\n 'use_type': <LiveStockUseType: \u0634\u06cc\u0631\u06cc>,\n 'weight_type': 'L'}
    name
    'create'
    self
    <django.db.models.manager.Manager object at 0x000002D902811280>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\query.py, line 677, in create\n \n\n \n
    \n \n
      \n \n
    1.             raise ValueError(
    2. \n \n
    3.                 "The following fields do not exist in this model: %s"
    4. \n \n
    5.                 % ", ".join(reverse_one_to_one_fields)
    6. \n \n
    7.             )
    8. \n \n
    9. \n \n
    10.         obj = self.model(**kwargs)
    11. \n \n
    12.         self._for_write = True
    13. \n \n
    \n \n
      \n
    1.         obj.save(force_insert=True, using=self.db)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.         return obj
    2. \n \n
    3. \n \n
    4.     async def acreate(self, **kwargs):
    5. \n \n
    6.         return await sync_to_async(self.create)(**kwargs)
    7. \n \n
    8. \n \n
    9.     def _prepare_for_bulk_create(self, objs):
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    kwargs
    {'birthdate': datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 'gender': 2,\n 'herd': <Herd: \u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9-12542365>,\n 'species': <LiveStockSpecies: \u0644\u0631\u06cc>,\n 'tag': <Tag: 256666>,\n 'type': <LiveStockType: \u06af\u0648\u0633\u0641\u0646\u062f>,\n 'use_type': <LiveStockUseType: \u0634\u06cc\u0631\u06cc>,\n 'weight_type': 'L'}
    obj
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    reverse_one_to_one_fields
    frozenset()
    self
    <QuerySet []>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Project\\Rasaddam_Backend\\apps\\livestock\\models.py, line 87, in save\n \n\n \n
    \n \n
      \n \n
    1.     )
    2. \n \n
    3.     gender = models.IntegerField(choices=gender_type, default=1)
    4. \n \n
    5. \n \n
    6.     def __str__(self):
    7. \n \n
    8.         return f'{self.type.name}-{self.species.name}'
    9. \n \n
    10. \n \n
    11.     def save(self, *args, **kwargs):
    12. \n \n
    \n \n
      \n
    1.         super(LiveStock, self).save(*args, **kwargs)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    __class__
    <class 'apps.livestock.models.LiveStock'>
    args
    ()
    kwargs
    {'force_insert': True, 'using': 'default'}
    self
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Project\\Rasaddam_Backend\\apps\\core\\models.py, line 37, in save\n \n\n \n
    \n \n
      \n \n
    1.     def save(self, *args, **kwargs):
    2. \n \n
    3.         user = get_current_user()  # get user object
    4. \n \n
    5.         self.modified_by = user
    6. \n \n
    7.         if not self.creator_info:
    8. \n \n
    9.             self.created_by = user
    10. \n \n
    11.             self.creator_info = user.first_name + ' ' + user.last_name + '-' + user.national_code
    12. \n \n
    13.         self.modifier_info = user.first_name + ' ' + user.last_name + '-' + user.national_code
    14. \n \n
    \n \n
      \n
    1.         super(BaseModel, self).save(*args, **kwargs)\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2. \n \n
    3. class MobileTest(BaseModel):
    4. \n \n
    5.     latitude = models.DecimalField(max_digits=22, decimal_places=16)
    6. \n \n
    7.     longitude = models.DecimalField(max_digits=22, decimal_places=16)
    8. \n \n
    9.     count = models.IntegerField(default=0)
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    __class__
    <class 'apps.core.models.BaseModel'>
    args
    ()
    kwargs
    {'force_insert': True, 'using': 'default'}
    self
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    user
    <User: moji \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-None>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 814, in save\n \n\n \n
    \n \n
      \n \n
    1.             for field in self._meta.concrete_fields:
    2. \n \n
    3.                 if not field.primary_key and not hasattr(field, "through"):
    4. \n \n
    5.                     field_names.add(field.attname)
    6. \n \n
    7.             loaded_fields = field_names.difference(deferred_fields)
    8. \n \n
    9.             if loaded_fields:
    10. \n \n
    11.                 update_fields = frozenset(loaded_fields)
    12. \n \n
    13. \n \n
    \n \n
      \n
    1.         self.save_base(\n             ^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             using=using,
    2. \n \n
    3.             force_insert=force_insert,
    4. \n \n
    5.             force_update=force_update,
    6. \n \n
    7.             update_fields=update_fields,
    8. \n \n
    9.         )
    10. \n \n
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    deferred_fields
    set()
    force_insert
    True
    force_update
    False
    self
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    update_fields
    None
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 901, in save_base\n \n\n \n
    \n \n
      \n \n
    1.             parent_inserted = False
    2. \n \n
    3.             if not raw:
    4. \n \n
    5.                 # Validate force insert only when parents are inserted.
    6. \n \n
    7.                 force_insert = self._validate_force_insert(force_insert)
    8. \n \n
    9.                 parent_inserted = self._save_parents(
    10. \n \n
    11.                     cls, using, update_fields, force_insert
    12. \n \n
    13.                 )
    14. \n \n
    \n \n
      \n
    1.             updated = self._save_table(\n                           
      \u2026
    2. \n
    \n \n
      \n \n
    1.                 raw,
    2. \n \n
    3.                 cls,
    4. \n \n
    5.                 force_insert or parent_inserted,
    6. \n \n
    7.                 force_update,
    8. \n \n
    9.                 using,
    10. \n \n
    11.                 update_fields,
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    cls
    <class 'apps.livestock.models.LiveStock'>
    context_manager
    <contextlib._GeneratorContextManager object at 0x000002D902B809B0>
    force_insert
    (<class 'apps.livestock.models.LiveStock'>,)
    force_update
    False
    meta
    <Options for LiveStock>
    origin
    <class 'apps.livestock.models.LiveStock'>
    parent_inserted
    False
    raw
    False
    self
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    update_fields
    None
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 1059, in _save_table\n \n\n \n
    \n \n
      \n \n
    1.                 )
    2. \n \n
    3.             fields = [
    4. \n \n
    5.                 f
    6. \n \n
    7.                 for f in meta.local_concrete_fields
    8. \n \n
    9.                 if not f.generated and (pk_set or f is not meta.auto_field)
    10. \n \n
    11.             ]
    12. \n \n
    13.             returning_fields = meta.db_returning_fields
    14. \n \n
    \n \n
      \n
    1.             results = self._do_insert(\n                            
      \u2026
    2. \n
    \n \n
      \n \n
    1.                 cls._base_manager, using, fields, returning_fields, raw
    2. \n \n
    3.             )
    4. \n \n
    5.             if results:
    6. \n \n
    7.                 for value, field in zip(results[0], returning_fields):
    8. \n \n
    9.                     setattr(self, field.attname, value)
    10. \n \n
    11.         return updated
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    cls
    <class 'apps.livestock.models.LiveStock'>
    fields
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    force_insert
    (<class 'apps.livestock.models.LiveStock'>,)
    force_update
    False
    meta
    <Options for LiveStock>
    non_pks
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    pk_set
    False
    pk_val
    None
    raw
    False
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    update_fields
    None
    updated
    False
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\base.py, line 1100, in _do_insert\n \n\n \n
    \n \n
      \n \n
    1.         return filtered._update(values) > 0
    2. \n \n
    3. \n \n
    4.     def _do_insert(self, manager, using, fields, returning_fields, raw):
    5. \n \n
    6.         """
    7. \n \n
    8.         Do an INSERT. If returning_fields is defined then this method should
    9. \n \n
    10.         return the newly created data for the model.
    11. \n \n
    12.         """
    13. \n \n
    \n \n
      \n
    1.         return manager._insert(\n                     
      \u2026
    2. \n
    \n \n
      \n \n
    1.             [self],
    2. \n \n
    3.             fields=fields,
    4. \n \n
    5.             returning_fields=returning_fields,
    6. \n \n
    7.             using=using,
    8. \n \n
    9.             raw=raw,
    10. \n \n
    11.         )
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    fields
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    manager
    <django.db.models.manager.Manager object at 0x000002D902B80B60>
    raw
    False
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    <LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\manager.py, line 87, in manager_method\n \n\n \n
    \n \n
      \n \n
    1.         return []
    2. \n \n
    3. \n \n
    4.     @classmethod
    5. \n \n
    6.     def _get_queryset_methods(cls, queryset_class):
    7. \n \n
    8.         def create_method(name, method):
    9. \n \n
    10.             @wraps(method)
    11. \n \n
    12.             def manager_method(self, *args, **kwargs):
    13. \n \n
    \n \n
      \n
    1.                 return getattr(self.get_queryset(), name)(*args, **kwargs)\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.             return manager_method
    3. \n \n
    4. \n \n
    5.         new_methods = {}
    6. \n \n
    7.         for name, method in inspect.getmembers(
    8. \n \n
    9.             queryset_class, predicate=inspect.isfunction
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    args
    ([<LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>],)
    kwargs
    {'fields': [<django.db.models.fields.DateTimeField: create_date>,\n            <django.db.models.fields.DateTimeField: modify_date>,\n            <django.db.models.fields.related.ForeignKey: created_by>,\n            <django.db.models.fields.related.ForeignKey: modified_by>,\n            <django.db.models.fields.CharField: creator_info>,\n            <django.db.models.fields.CharField: modifier_info>,\n            <django.db.models.fields.BooleanField: trash>,\n            <django.db.models.fields.related.ForeignKey: herd>,\n            <django.db.models.fields.related.ForeignKey: tag>,\n            <django.db.models.fields.related.ForeignKey: type>,\n            <django.db.models.fields.related.ForeignKey: use_type>,\n            <django.db.models.fields.CharField: weight_type>,\n            <django.db.models.fields.related.ForeignKey: species>,\n            <django.db.models.fields.DateTimeField: birthdate>,\n            <django.db.models.fields.IntegerField: gender>],\n 'raw': False,\n 'returning_fields': [<django.db.models.fields.BigAutoField: id>],\n 'using': 'default'}
    name
    '_insert'
    self
    <django.db.models.manager.Manager object at 0x000002D902B80B60>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\query.py, line 1845, in _insert\n \n\n \n
    \n \n
      \n \n
    1.         query = sql.InsertQuery(
    2. \n \n
    3.             self.model,
    4. \n \n
    5.             on_conflict=on_conflict,
    6. \n \n
    7.             update_fields=update_fields,
    8. \n \n
    9.             unique_fields=unique_fields,
    10. \n \n
    11.         )
    12. \n \n
    13.         query.insert_values(fields, objs, raw=raw)
    14. \n \n
    \n \n
      \n
    1.         return query.get_compiler(using=using).execute_sql(returning_fields)\n                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     _insert.alters_data = True
    3. \n \n
    4.     _insert.queryset_only = False
    5. \n \n
    6. \n \n
    7.     def _batched_insert(
    8. \n \n
    9.         self,
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    fields
    [<django.db.models.fields.DateTimeField: create_date>,\n <django.db.models.fields.DateTimeField: modify_date>,\n <django.db.models.fields.related.ForeignKey: created_by>,\n <django.db.models.fields.related.ForeignKey: modified_by>,\n <django.db.models.fields.CharField: creator_info>,\n <django.db.models.fields.CharField: modifier_info>,\n <django.db.models.fields.BooleanField: trash>,\n <django.db.models.fields.related.ForeignKey: herd>,\n <django.db.models.fields.related.ForeignKey: tag>,\n <django.db.models.fields.related.ForeignKey: type>,\n <django.db.models.fields.related.ForeignKey: use_type>,\n <django.db.models.fields.CharField: weight_type>,\n <django.db.models.fields.related.ForeignKey: species>,\n <django.db.models.fields.DateTimeField: birthdate>,\n <django.db.models.fields.IntegerField: gender>]
    objs
    [<LiveStock: \u06af\u0648\u0633\u0641\u0646\u062f-\u0644\u0631\u06cc>]
    on_conflict
    None
    query
    <django.db.models.sql.subqueries.InsertQuery object at 0x000002D902B80710>
    raw
    False
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    <QuerySet []>
    unique_fields
    None
    update_fields
    None
    using
    'default'
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\models\\sql\\compiler.py, line 1822, in execute_sql\n \n\n \n
    \n \n
      \n \n
    1.             and len(self.query.objs) != 1
    2. \n \n
    3.             and not self.connection.features.can_return_rows_from_bulk_insert
    4. \n \n
    5.         )
    6. \n \n
    7.         opts = self.query.get_meta()
    8. \n \n
    9.         self.returning_fields = returning_fields
    10. \n \n
    11.         with self.connection.cursor() as cursor:
    12. \n \n
    13.             for sql, params in self.as_sql():
    14. \n \n
    \n \n
      \n
    1.                 cursor.execute(sql, params)\n                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             if not self.returning_fields:
    2. \n \n
    3.                 return []
    4. \n \n
    5.             if (
    6. \n \n
    7.                 self.connection.features.can_return_rows_from_bulk_insert
    8. \n \n
    9.                 and len(self.query.objs) > 1
    10. \n \n
    11.             ):
    12. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    cursor
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    opts
    <Options for LiveStock>
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    returning_fields
    [<django.db.models.fields.BigAutoField: id>]
    self
    <SQLInsertCompiler model=LiveStock connection=<DatabaseWrapper vendor='postgresql' alias='default'> using='default'>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 122, in execute\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2. \n \n
    3. class CursorDebugWrapper(CursorWrapper):
    4. \n \n
    5.     # XXX callproc isn't instrumented at this time.
    6. \n \n
    7. \n \n
    8.     def execute(self, sql, params=None):
    9. \n \n
    10.         with self.debug_sql(sql, params, use_last_executed_query=True):
    11. \n \n
    \n \n
      \n
    1.             return super().execute(sql, params)\n                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def executemany(self, sql, param_list):
    3. \n \n
    4.         with self.debug_sql(sql, param_list, many=True):
    5. \n \n
    6.             return super().executemany(sql, param_list)
    7. \n \n
    8. \n \n
    9.     @contextmanager
    10. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    __class__
    <class 'django.db.backends.utils.CursorDebugWrapper'>
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 79, in execute\n \n\n \n
    \n \n
      \n \n
    1.             elif kparams is None:
    2. \n \n
    3.                 return self.cursor.callproc(procname, params)
    4. \n \n
    5.             else:
    6. \n \n
    7.                 params = params or ()
    8. \n \n
    9.                 return self.cursor.callproc(procname, params, kparams)
    10. \n \n
    11. \n \n
    12.     def execute(self, sql, params=None):
    13. \n \n
    \n \n
      \n
    1.         return self._execute_with_wrappers(\n                   
      \u2026
    2. \n
    \n \n
      \n \n
    1.             sql, params, many=False, executor=self._execute
    2. \n \n
    3.         )
    4. \n \n
    5. \n \n
    6.     def executemany(self, sql, param_list):
    7. \n \n
    8.         return self._execute_with_wrappers(
    9. \n \n
    10.             sql, param_list, many=True, executor=self._executemany
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 92, in _execute_with_wrappers\n \n\n \n
    \n \n
      \n \n
    1.             sql, param_list, many=True, executor=self._executemany
    2. \n \n
    3.         )
    4. \n \n
    5. \n \n
    6.     def _execute_with_wrappers(self, sql, params, many, executor):
    7. \n \n
    8.         context = {"connection": self.db, "cursor": self}
    9. \n \n
    10.         for wrapper in reversed(self.db.execute_wrappers):
    11. \n \n
    12.             executor = functools.partial(wrapper, executor)
    13. \n \n
    \n \n
      \n
    1.         return executor(sql, params, many, context)\n                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def _execute(self, sql, params, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    context
    {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n 'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>}
    executor
    <bound method CursorWrapper._execute of <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>>
    many
    False
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 100, in _execute\n \n\n \n
    \n \n
      \n \n
    1. \n \n
    2.     def _execute(self, sql, params, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    12.         self.db.validate_no_broken_transaction()
    13. \n \n
    \n \n
      \n
    1.         with self.db.wrap_database_errors:\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1.             if params is None:
    2. \n \n
    3.                 # params default might be backend specific.
    4. \n \n
    5.                 return self.cursor.execute(sql)
    6. \n \n
    7.             else:
    8. \n \n
    9.                 return self.cursor.execute(sql, params)
    10. \n \n
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ignored_wrapper_args
    (False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n  'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>})
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\utils.py, line 91, in __exit__\n \n\n \n
    \n \n
      \n \n
    1.             db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__)
    2. \n \n
    3.             if issubclass(exc_type, db_exc_type):
    4. \n \n
    5.                 dj_exc_value = dj_exc_type(*exc_value.args)
    6. \n \n
    7.                 # Only set the 'errors_occurred' flag for errors that may make
    8. \n \n
    9.                 # the connection unusable.
    10. \n \n
    11.                 if dj_exc_type not in (DataError, IntegrityError):
    12. \n \n
    13.                     self.wrapper.errors_occurred = True
    14. \n \n
    \n \n
      \n
    1.                 raise dj_exc_value.with_traceback(traceback) from exc_value\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def __call__(self, func):
    3. \n \n
    4.         # Note that we are intentionally not using @wraps here for performance
    5. \n \n
    6.         # reasons. Refs #21109.
    7. \n \n
    8.         def inner(*args, **kwargs):
    9. \n \n
    10.             with self:
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    db_exc_type
    <class 'psycopg2.IntegrityError'>
    dj_exc_type
    <class 'django.db.utils.IntegrityError'>
    dj_exc_value
    IntegrityError('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    exc_type
    <class 'psycopg2.errors.NotNullViolation'>
    exc_value
    NotNullViolation('null value in column "age_by_day" of relation "livestock_livestock" violates not-null constraint\\nDETAIL:  Failing row contains (2, 2025-05-24 09:12:29.157289+00, 2025-05-24 09:12:29.157289+00, f, 2025-05-13 08:56:51.64436+00, 2, 1, 1, null, null, null, L, 1, 1, 1, 2, 2, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598, \u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598).\\n')
    self
    <django.db.utils.DatabaseErrorWrapper object at 0x000002D902C90350>
    traceback
    <traceback object at 0x000002D902B4D580>
    \n
    \n \n
  • \n \n \n
  • \n \n D:\\Software\\env\\Lib\\site-packages\\django\\db\\backends\\utils.py, line 105, in _execute\n \n\n \n
    \n \n
      \n \n
    1.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    2. \n \n
    3.         self.db.validate_no_broken_transaction()
    4. \n \n
    5.         with self.db.wrap_database_errors:
    6. \n \n
    7.             if params is None:
    8. \n \n
    9.                 # params default might be backend specific.
    10. \n \n
    11.                 return self.cursor.execute(sql)
    12. \n \n
    13.             else:
    14. \n \n
    \n \n
      \n
    1.                 return self.cursor.execute(sql, params)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      \u2026
    2. \n
    \n \n
      \n \n
    1. \n \n
    2.     def _executemany(self, sql, param_list, *ignored_wrapper_args):
    3. \n \n
    4.         # Raise a warning during app initialization (stored_app_configs is only
    5. \n \n
    6.         # ever set during testing).
    7. \n \n
    8.         if not apps.ready and not apps.stored_app_configs:
    9. \n \n
    10.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
    11. \n \n
    \n \n
    \n \n\n \n \n
    \n Local vars\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    VariableValue
    ignored_wrapper_args
    (False,\n {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,\n  'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>})
    params
    (datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n datetime.datetime(2025, 5, 24, 9, 12, 29, 157289, tzinfo=datetime.timezone.utc),\n 2,\n 2,\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n '\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598',\n False,\n 1,\n 1,\n 1,\n 1,\n 'L',\n 1,\n datetime.datetime(2025, 5, 13, 8, 56, 51, 644360, tzinfo=zoneinfo.ZoneInfo(key='UTC')),\n 2)
    self
    <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x000002D902B83CB0>
    sql
    ('INSERT INTO "livestock_livestock" ("create_date", "modify_date", '\n '"created_by_id", "modified_by_id", "creator_info", "modifier_info", "trash", '\n '"herd_id", "tag_id", "type_id", "use_type_id", "weight_type", "species_id", '\n '"birthdate", "gender") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '\n '%s, %s, %s, %s) RETURNING "livestock_livestock"."id"')
    \n
    \n \n
  • \n \n
\n
\n\n
\n
\n \n \n \n \n \n

\n \n
\n
\n\n
\n\n\n
\n

Request information

\n\n\n \n

USER

\n

moji \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-None

\n \n\n

GET

\n \n

No GET data

\n \n\n

POST

\n \n

No POST data

\n \n\n

FILES

\n \n

No FILES data

\n \n\n

COOKIES

\n \n

No cookie data

\n \n\n

META

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
VariableValue
ALLUSERSPROFILE
'C:\\\\ProgramData'
APPCODE_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\appcode.vmoptions'
APPDATA
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming'
CLION_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\clion.vmoptions'
COMMONPROGRAMFILES
'C:\\\\Program Files\\\\Common Files'
COMMONPROGRAMFILES(X86)
'C:\\\\Program Files (x86)\\\\Common Files'
COMMONPROGRAMW6432
'C:\\\\Program Files\\\\Common Files'
COMPUTERNAME
'DESKTOP-77GDGLN'
COMSPEC
'C:\\\\Windows\\\\system32\\\\cmd.exe'
CONTENT_LENGTH
'187'
CONTENT_TYPE
'application/json'
DATAGRIP_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\datagrip.vmoptions'
DATASPELL_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\dataspell.vmoptions'
DEVECOSTUDIO_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\devecostudio.vmoptions'
DJANGO_SETTINGS_MODULE
'Rasaddam_Backend.settings'
DRIVERDATA
'C:\\\\Windows\\\\System32\\\\Drivers\\\\DriverData'
EFC_9236
'1'
FPS_BROWSER_APP_PROFILE_STRING
'Internet Explorer'
FPS_BROWSER_USER_PROFILE_STRING
'Default'
GATEWAY_INTERFACE
'CGI/1.1'
GATEWAY_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\gateway.vmoptions'
GOLAND_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\goland.vmoptions'
HOMEDRIVE
'C:'
HOMEPATH
'\\\\Users\\\\Housh8'
HTTP_ACCEPT
'*/*'
HTTP_ACCEPT_ENCODING
'gzip, deflate, br'
HTTP_AUTHORIZATION
('Bearer '\n 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzQ4MTUwNTc5LCJpYXQiOjE3NDgwNjQxNzksImp0aSI6ImY1NjA3MGQ5M2Q3ZTQ2OWY5YjUzZTBiNWU0Yzg4ZGI4IiwidXNlcl9pZCI6MiwibmFtZSI6Im1vamkiLCJtb2JpbGUiOiIwOTM4OTY1NyIsIm5hdGlvbmFsX2NvZGUiOiI0MDYxMDgwNTk4In0.FKrYU38zStPGnrzgoDzvAd5EAiCDuoAFrHPXncAknok')
HTTP_CACHE_CONTROL
'no-cache'
HTTP_CONNECTION
'keep-alive'
HTTP_HOST
'127.0.0.1:8000'
HTTP_POSTMAN_TOKEN
'********************'
HTTP_USER_AGENT
'PostmanRuntime/7.44.0'
IDEA_INITIAL_DIRECTORY
'C:\\\\Users\\\\Housh8\\\\Desktop'
IDEA_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\idea.vmoptions'
JETBRAINSCLIENT_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\jetbrainsclient.vmoptions'
JETBRAINS_CLIENT_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\jetbrains_client.vmoptions'
LOCALAPPDATA
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local'
LOGONSERVER
'\\\\\\\\DESKTOP-77GDGLN'
NODEJS
'C:\\\\ProgramData\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Node.js'
NUMBER_OF_PROCESSORS
'4'
NVM_HOME
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm'
NVM_SYMLINK
'C:\\\\nvm4w\\\\nodejs'
ONEDRIVE
'C:\\\\Users\\\\Housh8\\\\OneDrive'
OS
'Windows_NT'
PATH
('D:\\\\Software\\\\env\\\\Scripts;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Program '\n 'Files\\\\Git\\\\cmd;C:\\\\Program '\n 'Files\\\\nodejs\\\\;D:\\\\Software\\\\python-3.12.0\\\\Scripts\\\\;D:\\\\Software\\\\python-3.12.0\\\\;D:\\\\Software\\\\python\\\\Scripts\\\\;D:\\\\Software\\\\python\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Launcher\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Microsoft '\n 'VS '\n 'Code\\\\bin;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming\\\\npm')
PATHEXT
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
PATH_INFO
'/livestock/web/api/v1/livestock/'
PHPSTORM_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\phpstorm.vmoptions'
PROCESSOR_ARCHITECTURE
'AMD64'
PROCESSOR_IDENTIFIER
'Intel64 Family 6 Model 158 Stepping 9, GenuineIntel'
PROCESSOR_LEVEL
'6'
PROCESSOR_REVISION
'9e09'
PROGRAMDATA
'C:\\\\ProgramData'
PROGRAMFILES
'C:\\\\Program Files'
PROGRAMFILES(X86)
'C:\\\\Program Files (x86)'
PROGRAMW6432
'C:\\\\Program Files'
PROMPT
'(env) $P$G'
PSMODULEPATH
('C:\\\\Program '\n 'Files\\\\WindowsPowerShell\\\\Modules;C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\Modules')
PUBLIC
'C:\\\\Users\\\\Public'
PYCHARM_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\pycharm.vmoptions'
QUERY_STRING
''
REMOTE_ADDR
'127.0.0.1'
REMOTE_HOST
''
REQUEST_METHOD
'POST'
RIDER_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\rider.vmoptions'
RUBYMINE_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\rubymine.vmoptions'
RUN_MAIN
'true'
RUSTROVER_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\RustRover.vmoptions'
SCRIPT_NAME
''
SERVER_NAME
'DESKTOP-77GDGLN'
SERVER_PORT
'8000'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SOFTWARE
'WSGIServer/0.2'
SESSIONNAME
'Console'
STUDIO_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\studio.vmoptions'
SYSTEMDRIVE
'C:'
SYSTEMROOT
'C:\\\\Windows'
TEMP
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Temp'
TERMINAL_EMULATOR
'JetBrains-JediTerm'
TERM_SESSION_ID
'47718519-d082-4e63-ad0c-0703ee64fd3f'
TMP
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Temp'
USERDOMAIN
'DESKTOP-77GDGLN'
USERDOMAIN_ROAMINGPROFILE
'DESKTOP-77GDGLN'
USERNAME
'Housh8'
USERPROFILE
'C:\\\\Users\\\\Housh8'
VIRTUAL_ENV
'D:\\\\Software\\\\env'
WEBIDE_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\webide.vmoptions'
WEBSTORM_VM_OPTIONS
'C:\\\\ja-netfilter\\\\vmoptions\\\\webstorm.vmoptions'
WINDIR
'C:\\\\Windows'
_OLD_VIRTUAL_PATH
('C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Program '\n 'Files\\\\Git\\\\cmd;C:\\\\Program '\n 'Files\\\\nodejs\\\\;D:\\\\Software\\\\python-3.12.0\\\\Scripts\\\\;D:\\\\Software\\\\python-3.12.0\\\\;D:\\\\Software\\\\python\\\\Scripts\\\\;D:\\\\Software\\\\python\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Launcher\\\\;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\Programs\\\\Microsoft '\n 'VS '\n 'Code\\\\bin;C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\nvm;C:\\\\nvm4w\\\\nodejs;C:\\\\Users\\\\Housh8\\\\AppData\\\\Roaming\\\\npm')
_OLD_VIRTUAL_PROMPT
'$P$G'
__INTELLIJ_COMMAND_HISTFILE__
'C:\\\\Users\\\\Housh8\\\\AppData\\\\Local\\\\JetBrains\\\\PyCharm2021.3\\\\terminal\\\\history\\\\Rasaddam_Backend-history'
wsgi.errors
<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
wsgi.file_wrapper
<class 'wsgiref.util.FileWrapper'>
wsgi.input
<django.core.handlers.wsgi.LimitedStream object at 0x000002D902954C10>
wsgi.multiprocess
False
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
\n\n\n

Settings

\n

Using settings module Rasaddam_Backend.settings

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
SettingValue
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
[]
ALLOWED_HOSTS
['localhost', '127.0.0.1', 'https://rasadyar.net/', 'https://localhost:9200']
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS
'********************'
AUTH_USER_MODEL
'authentication.User'
BASE_DIR
WindowsPath('D:/Project/Rasaddam_Backend')
CACHES
{'default': {'BACKEND': 'django_redis.cache.RedisCache',\n             'KEY_PREFIX': '********************',\n             'LOCATION': 'redis://:ydnW4hwzuDRYcTX3FWCHgQ1f@apo.liara.cloud:33740/0',\n             'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}},\n 'memcache': {'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',\n              'LOCATION': '127.0.0.1:11211'}}
CACHE_MIDDLEWARE_ALIAS
'default'
CACHE_MIDDLEWARE_KEY_PREFIX
'********************'
CACHE_MIDDLEWARE_SECONDS
600
CORS_ALLOWED_ORIGINS
('http://localhost:8080',\n 'http://127.0.0.1:8080',\n 'http://127.0.0.1:3000',\n 'http://localhost:3000',\n 'https://rasadyar.net')
CORS_ORIGIN_ALLOW_ALL
True
CORS_ORIGIN_WHITELIST
('http://localhost:8080',\n 'http://127.0.0.1:8080',\n 'http://127.0.0.1:3000',\n 'http://localhost:3000',\n 'https://rasadyar.net')
CSRF_COOKIE_AGE
31449600
CSRF_COOKIE_DOMAIN
None
CSRF_COOKIE_HTTPONLY
False
CSRF_COOKIE_NAME
'csrftoken'
CSRF_COOKIE_PATH
'/'
CSRF_COOKIE_SAMESITE
'Lax'
CSRF_COOKIE_SECURE
False
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME
'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS
[]
CSRF_USE_SESSIONS
False
DATABASES
{'default': {'ATOMIC_REQUESTS': False,\n             'AUTOCOMMIT': True,\n             'CONN_HEALTH_CHECKS': False,\n             'CONN_MAX_AGE': 0,\n             'ENGINE': 'django.db.backends.postgresql_psycopg2',\n             'HOST': 'monte-rosa.liara.cloud',\n             'NAME': 'postgres',\n             'OPTIONS': {},\n             'PASSWORD': '********************',\n             'PORT': '32718',\n             'TEST': {'CHARSET': None,\n                      'COLLATION': None,\n                      'MIGRATE': True,\n                      'MIRROR': None,\n                      'NAME': None},\n             'TIME_ZONE': None,\n             'USER': 'root'}}
DATABASE_ROUTERS
[]
DATA_UPLOAD_MAX_MEMORY_SIZE
50242880
DATA_UPLOAD_MAX_NUMBER_FIELDS
1000
DATA_UPLOAD_MAX_NUMBER_FILES
100
DATETIME_FORMAT
'%Y-%m-%d %H:%M:%S'
DATETIME_INPUT_FORMATS
['%Y-%m-%d %H:%M:%S',\n '%Y-%m-%d %H:%M:%S.%f',\n '%Y-%m-%d %H:%M',\n '%m/%d/%Y %H:%M:%S',\n '%m/%d/%Y %H:%M:%S.%f',\n '%m/%d/%Y %H:%M',\n '%m/%d/%y %H:%M:%S',\n '%m/%d/%y %H:%M:%S.%f',\n '%m/%d/%y %H:%M']
DATE_FORMAT
'N j, Y'
DATE_INPUT_FORMATS
['%Y-%m-%d',\n '%m/%d/%Y',\n '%m/%d/%y',\n '%b %d %Y',\n '%b %d, %Y',\n '%d %b %Y',\n '%d %b, %Y',\n '%B %d %Y',\n '%B %d, %Y',\n '%d %B %Y',\n '%d %B, %Y']
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DECIMAL_SEPARATOR
'.'
DEFAULT_AUTO_FIELD
'django.db.models.BigAutoField'
DEFAULT_CHARSET
'utf-8'
DEFAULT_EXCEPTION_REPORTER
'django.views.debug.ExceptionReporter'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISALLOWED_USER_AGENTS
[]
ELASTICSEARCH_DSL
{'default': {'hosts': 'http://monte-rosa.liara.cloud:31157',\n             'http_auth': ('elastic', 'uYkiQ860vLW8DIbWpNjqtz2B')}}
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'localhost'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
''
EMAIL_PORT
25
EMAIL_SSL_CERTFILE
None
EMAIL_SSL_KEYFILE
'********************'
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_TIMEOUT
None
EMAIL_USE_LOCALTIME
False
EMAIL_USE_SSL
False
EMAIL_USE_TLS
False
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
['django.core.files.uploadhandler.MemoryFileUploadHandler',\n 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
420
FILE_UPLOAD_TEMP_DIR
None
FIRST_DAY_OF_WEEK
0
FIXTURE_DIRS
[]
FORCE_SCRIPT_NAME
None
FORMAT_MODULE_PATH
None
FORMS_URLFIELD_ASSUME_HTTPS
False
FORM_RENDERER
'django.forms.renderers.DjangoTemplates'
IGNORABLE_404_URLS
[]
INSTALLED_APPS
['django.contrib.admin',\n 'django.contrib.auth',\n 'django.contrib.contenttypes',\n 'django.contrib.sessions',\n 'django.contrib.messages',\n 'django.contrib.staticfiles',\n 'django_elasticsearch_dsl',\n 'django_elasticsearch_dsl_drf',\n 'rest_framework',\n 'corsheaders',\n 'rest_framework_simplejwt',\n 'rest_framework_simplejwt.token_blacklist',\n 'apps.authentication.apps.AuthenticationConfig',\n 'apps.authorization.apps.AuthorizationConfig',\n 'apps.captcha_app.apps.CaptchaAppConfig',\n 'apps.core.apps.CoreConfig',\n 'apps.herd.apps.HerdAppConfig',\n 'apps.livestock.apps.LivestockConfig',\n 'apps.pos_machine.apps.PosMachineConfig',\n 'apps.tag.apps.TagConfig',\n 'apps.warehouse.apps.WarehouseConfig',\n 'apps.search.apps.SearchConfig',\n 'apps.log.apps.LogConfig',\n 'rest_captcha',\n 'captcha',\n 'drf_yasg']
INTERNAL_IPS
[]
LANGUAGES
[('af', 'Afrikaans'),\n ('ar', 'Arabic'),\n ('ar-dz', 'Algerian Arabic'),\n ('ast', 'Asturian'),\n ('az', 'Azerbaijani'),\n ('bg', 'Bulgarian'),\n ('be', 'Belarusian'),\n ('bn', 'Bengali'),\n ('br', 'Breton'),\n ('bs', 'Bosnian'),\n ('ca', 'Catalan'),\n ('ckb', 'Central Kurdish (Sorani)'),\n ('cs', 'Czech'),\n ('cy', 'Welsh'),\n ('da', 'Danish'),\n ('de', 'German'),\n ('dsb', 'Lower Sorbian'),\n ('el', 'Greek'),\n ('en', 'English'),\n ('en-au', 'Australian English'),\n ('en-gb', 'British English'),\n ('eo', 'Esperanto'),\n ('es', 'Spanish'),\n ('es-ar', 'Argentinian Spanish'),\n ('es-co', 'Colombian Spanish'),\n ('es-mx', 'Mexican Spanish'),\n ('es-ni', 'Nicaraguan Spanish'),\n ('es-ve', 'Venezuelan Spanish'),\n ('et', 'Estonian'),\n ('eu', 'Basque'),\n ('fa', 'Persian'),\n ('fi', 'Finnish'),\n ('fr', 'French'),\n ('fy', 'Frisian'),\n ('ga', 'Irish'),\n ('gd', 'Scottish Gaelic'),\n ('gl', 'Galician'),\n ('he', 'Hebrew'),\n ('hi', 'Hindi'),\n ('hr', 'Croatian'),\n ('hsb', 'Upper Sorbian'),\n ('hu', 'Hungarian'),\n ('hy', 'Armenian'),\n ('ia', 'Interlingua'),\n ('id', 'Indonesian'),\n ('ig', 'Igbo'),\n ('io', 'Ido'),\n ('is', 'Icelandic'),\n ('it', 'Italian'),\n ('ja', 'Japanese'),\n ('ka', 'Georgian'),\n ('kab', 'Kabyle'),\n ('kk', 'Kazakh'),\n ('km', 'Khmer'),\n ('kn', 'Kannada'),\n ('ko', 'Korean'),\n ('ky', 'Kyrgyz'),\n ('lb', 'Luxembourgish'),\n ('lt', 'Lithuanian'),\n ('lv', 'Latvian'),\n ('mk', 'Macedonian'),\n ('ml', 'Malayalam'),\n ('mn', 'Mongolian'),\n ('mr', 'Marathi'),\n ('ms', 'Malay'),\n ('my', 'Burmese'),\n ('nb', 'Norwegian Bokm\u00e5l'),\n ('ne', 'Nepali'),\n ('nl', 'Dutch'),\n ('nn', 'Norwegian Nynorsk'),\n ('os', 'Ossetic'),\n ('pa', 'Punjabi'),\n ('pl', 'Polish'),\n ('pt', 'Portuguese'),\n ('pt-br', 'Brazilian Portuguese'),\n ('ro', 'Romanian'),\n ('ru', 'Russian'),\n ('sk', 'Slovak'),\n ('sl', 'Slovenian'),\n ('sq', 'Albanian'),\n ('sr', 'Serbian'),\n ('sr-latn', 'Serbian Latin'),\n ('sv', 'Swedish'),\n ('sw', 'Swahili'),\n ('ta', 'Tamil'),\n ('te', 'Telugu'),\n ('tg', 'Tajik'),\n ('th', 'Thai'),\n ('tk', 'Turkmen'),\n ('tr', 'Turkish'),\n ('tt', 'Tatar'),\n ('udm', 'Udmurt'),\n ('ug', 'Uyghur'),\n ('uk', 'Ukrainian'),\n ('ur', 'Urdu'),\n ('uz', 'Uzbek'),\n ('vi', 'Vietnamese'),\n ('zh-hans', 'Simplified Chinese'),\n ('zh-hant', 'Traditional Chinese')]
LANGUAGES_BIDI
['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ug', 'ur']
LANGUAGE_CODE
'en-us'
LANGUAGE_COOKIE_AGE
None
LANGUAGE_COOKIE_DOMAIN
None
LANGUAGE_COOKIE_HTTPONLY
False
LANGUAGE_COOKIE_NAME
'django_language'
LANGUAGE_COOKIE_PATH
'/'
LANGUAGE_COOKIE_SAMESITE
None
LANGUAGE_COOKIE_SECURE
False
LOCALE_PATHS
[]
LOGGING
{}
LOGGING_CONFIG
'logging.config.dictConfig'
LOGIN_REDIRECT_URL
'/accounts/profile/'
LOGIN_URL
'rest_framework:login'
LOGOUT_REDIRECT_URL
None
LOGOUT_URL
'rest_framework:logout'
MANAGERS
[]
MEDIA_ROOT
''
MEDIA_URL
'/'
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE
['django.middleware.security.SecurityMiddleware',\n 'django.contrib.sessions.middleware.SessionMiddleware',\n 'django.middleware.common.CommonMiddleware',\n 'django.middleware.csrf.CsrfViewMiddleware',\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n 'django.contrib.messages.middleware.MessageMiddleware',\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\n 'crum.CurrentRequestUserMiddleware',\n 'apps.log.middlewares.SaveLog']
MIGRATION_MODULES
{}
MONGODB_DATABASES
{'default': {'host': '', 'name': 'mongodb', 'tz_aware': True}}
MONTH_DAY_FORMAT
'F j'
NUMBER_GROUPING
0
PASSWORD_HASHERS
'********************'
PASSWORD_RESET_TIMEOUT
'********************'
PREPEND_WWW
False
REST_CAPTCHA
{'CAPTCHA_BACKGROUND_COLOR': '#ffffff',\n 'CAPTCHA_CACHE': 'default',\n 'CAPTCHA_CACHE_KEY': '********************',\n 'CAPTCHA_FONT_SIZE': 35,\n 'CAPTCHA_FOREGROUND_COLOR': '#000000',\n 'CAPTCHA_IMAGE_SIZE': (90, 20),\n 'CAPTCHA_LENGTH': 6,\n 'CAPTCHA_LETTER_ROTATION': (-35, 35),\n 'CAPTCHA_TIMEOUT': 300,\n 'FILTER_FUNCTION': 'rest_captcha.captcha.filter_default',\n 'NOISE_FUNCTION': 'apps.captcha_app.api.v1.serializers.noise_default'}
REST_FRAMEWORK
{'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_simplejwt.authentication.JWTAuthentication',\n                                    'rest_framework.authentication.SessionAuthentication',\n                                    'rest_framework.authentication.BasicAuthentication'),\n 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',\n 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),\n 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema',\n 'PAGE_SIZE': 25}
ROOT_URLCONF
'Rasaddam_Backend.urls'
SECRET_KEY
'********************'
SECRET_KEY_FALLBACKS
'********************'
SECURE_CONTENT_TYPE_NOSNIFF
True
SECURE_CROSS_ORIGIN_OPENER_POLICY
'same-origin'
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
SECURE_HSTS_PRELOAD
False
SECURE_HSTS_SECONDS
0
SECURE_PROXY_SSL_HEADER
('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_REDIRECT_EXEMPT
[]
SECURE_REFERRER_POLICY
'same-origin'
SECURE_SSL_HOST
None
SECURE_SSL_REDIRECT
False
SERVER_EMAIL
'root@localhost'
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_HTTPONLY
True
SESSION_COOKIE_NAME
'sessionid'
SESSION_COOKIE_PATH
'/'
SESSION_COOKIE_SAMESITE
'Lax'
SESSION_COOKIE_SECURE
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
False
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE
'Rasaddam_Backend.settings'
SHORT_DATETIME_FORMAT
'm/d/Y P'
SHORT_DATE_FORMAT
'm/d/Y'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS
[]
SIMPLE_JWT
{'ACCESS_TOKEN_LIFETIME': '********************',\n 'ALGORITHM': 'HS256',\n 'AUDIENCE': None,\n 'AUTH_HEADER_NAME': 'HTTP_AUTHORIZATION',\n 'AUTH_HEADER_TYPES': ('Bearer',),\n 'AUTH_TOKEN_CLASSES': '********************',\n 'BLACKLIST_AFTER_ROTATION': False,\n 'ISSUER': None,\n 'JSON_ENCODER': None,\n 'JTI_CLAIM': 'jti',\n 'JWK_URL': None,\n 'LEEWAY': 0,\n 'REFRESH_TOKEN_LIFETIME': '********************',\n 'ROTATE_REFRESH_TOKENS': '********************',\n 'SIGNING_KEY': '********************',\n 'SLIDING_TOKEN_LIFETIME': '********************',\n 'SLIDING_TOKEN_OBTAIN_SERIALIZER': '********************',\n 'SLIDING_TOKEN_REFRESH_EXP_CLAIM': '********************',\n 'SLIDING_TOKEN_REFRESH_LIFETIME': '********************',\n 'SLIDING_TOKEN_REFRESH_SERIALIZER': '********************',\n 'TOKEN_BLACKLIST_SERIALIZER': '********************',\n 'TOKEN_OBTAIN_SERIALIZER': '********************',\n 'TOKEN_REFRESH_SERIALIZER': '********************',\n 'TOKEN_TYPE_CLAIM': '********************',\n 'TOKEN_USER_CLASS': '********************',\n 'TOKEN_VERIFY_SERIALIZER': '********************',\n 'UPDATE_LAST_LOGIN': False,\n 'USER_AUTHENTICATION_RULE': 'rest_framework_simplejwt.authentication.default_user_authentication_rule',\n 'USER_ID_CLAIM': 'user_id',\n 'USER_ID_FIELD': 'id',\n 'VERIFYING_KEY': '********************'}
STATICFILES_DIRS
[]
STATICFILES_FINDERS
['django.contrib.staticfiles.finders.FileSystemFinder',\n 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT
None
STATIC_URL
'/static/'
STORAGES
{'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'},\n 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}}
SWAGGER_SETTINGS
{'SECURITY_DEFINITIONS': {'Bearer': {'in': 'header',\n                                     'name': 'Authorization',\n                                     'type': 'apiKey'},\n                          'basic': {'type': 'basic'}},\n 'USE_SESSION_AUTH': True}
TEMPLATES
[{'APP_DIRS': True,\n  'BACKEND': 'django.template.backends.django.DjangoTemplates',\n  'DIRS': [],\n  'OPTIONS': {'context_processors': ['django.template.context_processors.request',\n                                     'django.contrib.auth.context_processors.auth',\n                                     'django.contrib.messages.context_processors.messages']}}]
TEST_NON_SERIALIZED_APPS
[]
TEST_RUNNER
'django.test.runner.DiscoverRunner'
THOUSAND_SEPARATOR
','
TIME_FORMAT
'P'
TIME_INPUT_FORMATS
['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE
'UTC'
USE_I18N
True
USE_THOUSAND_SEPARATOR
False
USE_TZ
True
USE_X_FORWARDED_HOST
False
USE_X_FORWARDED_PORT
False
WSGI_APPLICATION
'Rasaddam_Backend.wsgi.application'
X_FRAME_OPTIONS
'DENY'
YEAR_MONTH_FORMAT
'F Y'
\n\n
\n\n
\n

\n You\u2019re seeing this error because you have DEBUG = True in your\n Django settings file. Change that to False, and Django will\n display a standard page generated by the handler for this status code.\n

\n
\n\n\n\n", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:42:29.332824", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "27": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 475, "body_response": "{\"id\":3,\"create_date\":\"2025-05-24T09:13:20.509502Z\",\"modify_date\":\"2025-05-24T09:13:20.509502Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"weight_type\":\"L\",\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2,\"created_by\":2,\"modified_by\":2,\"herd\":1,\"tag\":1,\"type\":1,\"use_type\":1,\"species\":1}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:43:20.556585", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "28": {"endpoint": "/livestock/web/api/v1/livestock/1/", "response_code": 404, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 277, "body_response": "{\"detail\":\"No LiveStock matches the given query.\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:43:48.972673", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "29": {"endpoint": "/livestock/web/api/v1/livestock/1/", "response_code": 404, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 269, "body_response": "{\"detail\":\"No LiveStock matches the given query.\"}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:43:56.610305", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "30": {"endpoint": "/livestock/web/api/v1/livestock/3/", "response_code": 200, "method": "PUT", "remote_address": "127.0.0.1", "exec_time": 470, "body_response": "{\"id\":3,\"create_date\":\"2025-05-24T09:13:20.509502Z\",\"modify_date\":\"2025-05-24T09:14:18.011228Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"weight_type\":\"L\",\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2,\"created_by\":2,\"modified_by\":2,\"herd\":1,\"tag\":1,\"type\":1,\"use_type\":1,\"species\":1}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 12:44:18.082549", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "31": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1214, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"create_date\":\"2025-05-24T09:13:20.509502Z\",\"modify_date\":\"2025-05-24T09:14:18.011228Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"weight_type\":\"L\",\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2,\"created_by\":2,\"modified_by\":2,\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"create_date\":\"2025-05-24T09:07:39.682557Z\",\"modify_date\":\"2025-05-24T09:07:39.682557Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"code\":\"256666\",\"status\":\"active\",\"created_by\":2,\"modified_by\":2,\"province\":1,\"city\":1,\"organization\":1},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"}}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 13:50:57.903490", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "32": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1413, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"create_date\":\"2025-05-24T09:13:20.509502Z\",\"modify_date\":\"2025-05-24T09:14:18.011228Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"weight_type\":\"L\",\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2,\"created_by\":{\"id\":2,\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"last_login\":null,\"is_superuser\":false,\"username\":\"moji\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"email\":\"moji@gmail.com\",\"is_staff\":true,\"is_active\":true,\"date_joined\":\"2025-05-05T07:56:07.933223Z\",\"create_date\":\"2025-05-05T07:56:08.109571Z\",\"modify_date\":\"2025-05-05T07:56:08.109571Z\",\"creator_info\":null,\"modifier_info\":null,\"trash\":false,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"otp_status\":false,\"is_herd_owner\":false,\"created_by\":null,\"modified_by\":null,\"province\":null,\"city\":null,\"groups\":[],\"user_permissions\":[]},\"modified_by\":{\"id\":2,\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"last_login\":null,\"is_superuser\":false,\"username\":\"moji\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"email\":\"moji@gmail.com\",\"is_staff\":true,\"is_active\":true,\"date_joined\":\"2025-05-05T07:56:07.933223Z\",\"create_date\":\"2025-05-05T07:56:08.109571Z\",\"modify_date\":\"2025-05-05T07:56:08.109571Z\",\"creator_info\":null,\"modifier_info\":null,\"trash\":false,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"otp_status\":false,\"is_herd_owner\":false,\"created_by\":null,\"modified_by\":null,\"province\":null,\"city\":null,\"groups\":[],\"user_permissions\":[]},\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"create_date\":\"2025-05-24T09:07:39.682557Z\",\"modify_date\":\"2025-05-24T09:07:39.682557Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"code\":\"256666\",\"status\":\"active\",\"created_by\":2,\"modified_by\":2,\"province\":1,\"city\":1,\"organization\":1},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"}}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 13:51:19.268267", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "33": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1329, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"code\":\"256666\",\"province\":1,\"city\":1,\"organization\":1,\"status\":\"active\"},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"weight_type\":\"L\",\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:11:47.378456", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "34": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1341, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"code\":\"256666\",\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"organization\":1,\"status\":\"active\"},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"weight_type\":\"L\",\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:15:22.145920", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "35": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1460, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"code\":\"256666\",\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"status\":\"active\"},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"weight_type\":\"L\",\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:16:30.997973", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "36": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1440, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"code\":\"256666\",\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"status\":\"active\"},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"weight_type\":\"L\",\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:16:53.392414", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "37": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1503, "body_response": "{\"count\":1,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"code\":\"256666\",\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"status\":\"active\"},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"weight_type\":\"L\",\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:16:57.008935", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "38": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 334, "body_response": "{\"id\":4,\"herd\":{\"creator_info\":\"\",\"modifier_info\":\"\",\"trash\":false,\"name\":\"\",\"photo\":\"\",\"code\":\"\",\"heavy_livestock_number\":null,\"light_livestock_number\":null,\"heavy_livestock_quota\":null,\"light_livestock_quota\":null,\"postal\":\"\",\"institution\":\"\",\"epidemiologic\":\"\",\"latitude\":null,\"longitude\":null,\"unit_unique_id\":\"\",\"activity\":null,\"activity_state\":false,\"operating_license_state\":false,\"capacity\":null,\"created_by\":null,\"modified_by\":null,\"owner\":null,\"cooperative\":null,\"province\":null,\"city\":null,\"contractor\":null},\"tag\":{\"code\":\"\",\"province\":null,\"city\":null,\"organization\":null,\"status\":\"\"},\"type\":{\"name\":\"\"},\"use_type\":{\"name\":\"\"},\"weight_type\":\"L\",\"species\":{\"name\":\"\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:53:13.544607", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "39": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 362, "body_response": "{\"id\":5,\"herd\":{\"creator_info\":\"\",\"modifier_info\":\"\",\"trash\":false,\"name\":\"\",\"photo\":\"\",\"code\":\"\",\"heavy_livestock_number\":null,\"light_livestock_number\":null,\"heavy_livestock_quota\":null,\"light_livestock_quota\":null,\"postal\":\"\",\"institution\":\"\",\"epidemiologic\":\"\",\"latitude\":null,\"longitude\":null,\"unit_unique_id\":\"\",\"activity\":null,\"activity_state\":false,\"operating_license_state\":false,\"capacity\":null,\"created_by\":null,\"modified_by\":null,\"owner\":null,\"cooperative\":null,\"province\":null,\"city\":null,\"contractor\":null},\"tag\":{\"code\":\"\",\"province\":null,\"city\":null,\"organization\":null,\"status\":\"\"},\"type\":{\"name\":\"\"},\"use_type\":{\"name\":\"\"},\"weight_type\":\"L\",\"species\":{\"name\":\"\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:53:46.653831", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "40": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 316, "body_response": "{\"id\":6,\"herd\":{\"creator_info\":\"\",\"modifier_info\":\"\",\"trash\":false,\"name\":\"\",\"photo\":\"\",\"code\":\"\",\"heavy_livestock_number\":null,\"light_livestock_number\":null,\"heavy_livestock_quota\":null,\"light_livestock_quota\":null,\"postal\":\"\",\"institution\":\"\",\"epidemiologic\":\"\",\"latitude\":null,\"longitude\":null,\"unit_unique_id\":\"\",\"activity\":null,\"activity_state\":false,\"operating_license_state\":false,\"capacity\":null,\"created_by\":null,\"modified_by\":null,\"owner\":null,\"cooperative\":null,\"province\":null,\"city\":null,\"contractor\":null},\"tag\":{\"code\":\"\",\"province\":null,\"city\":null,\"organization\":null,\"status\":\"\"},\"type\":{\"name\":\"\"},\"use_type\":{\"name\":\"\"},\"weight_type\":\"L\",\"species\":{\"name\":\"\"},\"birthdate\":\"2025-05-24T11:23:13.486799Z\",\"gender\":2}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:54:01.763341", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "41": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 201, "method": "POST", "remote_address": "127.0.0.1", "exec_time": 284, "body_response": "{\"id\":7,\"herd\":{\"creator_info\":\"\",\"modifier_info\":\"\",\"trash\":false,\"name\":\"\",\"photo\":\"\",\"code\":\"\",\"heavy_livestock_number\":null,\"light_livestock_number\":null,\"heavy_livestock_quota\":null,\"light_livestock_quota\":null,\"postal\":\"\",\"institution\":\"\",\"epidemiologic\":\"\",\"latitude\":null,\"longitude\":null,\"unit_unique_id\":\"\",\"activity\":null,\"activity_state\":false,\"operating_license_state\":false,\"capacity\":null,\"created_by\":null,\"modified_by\":null,\"owner\":null,\"cooperative\":null,\"province\":null,\"city\":null,\"contractor\":null},\"tag\":{\"code\":\"\",\"province\":null,\"city\":null,\"organization\":null,\"status\":\"\"},\"type\":{\"name\":\"\"},\"use_type\":{\"name\":\"\"},\"weight_type\":\"L\",\"species\":{\"name\":\"\"},\"birthdate\":\"2025-05-24T11:23:13.486799Z\",\"gender\":2}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 14:56:04.431779", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}, "42": {"endpoint": "/livestock/web/api/v1/livestock/", "response_code": 200, "method": "GET", "remote_address": "127.0.0.1", "exec_time": 1453, "body_response": "{\"count\":5,\"next\":null,\"previous\":null,\"results\":[{\"id\":3,\"herd\":{\"id\":1,\"create_date\":\"2025-05-19T08:14:46.221802Z\",\"modify_date\":\"2025-05-19T08:52:22.967252Z\",\"creator_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"modifier_info\":\"\u0645\u062c\u062a\u0628\u06cc \u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc-4061080598\",\"trash\":false,\"name\":\"\u06af\u0644\u0647 \u0634\u0645\u0627\u0631\u0647 \u06cc\u06a9\",\"photo\":\"ssss\",\"code\":\"12542365\",\"heavy_livestock_number\":250,\"light_livestock_number\":100,\"heavy_livestock_quota\":35,\"light_livestock_quota\":80,\"postal\":\"12542365\",\"institution\":\"5656656\",\"epidemiologic\":\"896574123\",\"latitude\":\"1.2235486500000000\",\"longitude\":\"2.3658974000000000\",\"unit_unique_id\":\"784512895623\",\"activity\":\"I\",\"activity_state\":true,\"operating_license_state\":true,\"capacity\":50,\"created_by\":2,\"modified_by\":2,\"owner\":{\"id\":2,\"username\":\"moji\",\"password\":\"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\",\"first_name\":\"\u0645\u062c\u062a\u0628\u06cc\",\"last_name\":\"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\",\"is_active\":true,\"mobile\":\"09389657\",\"phone\":null,\"national_code\":\"4061080598\",\"birthdate\":null,\"nationality\":null,\"ownership\":\"N\",\"address\":null,\"photo\":null,\"province\":null,\"city\":null,\"otp_status\":false},\"cooperative\":{\"id\":2,\"name\":\"\u062c\u0647\u0627\u062f \u0634\u0647\u0631\u0633\u062a\u0627\u0646\",\"type\":{\"key\":null,\"name\":\"\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"3\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"contractor\":{\"id\":22,\"name\":\"\u062a\u0639\u0627\u0648\u0646\u06cc \u062f\u0627\u0645\u062f\u0627\u0631\u0627\u0646 \u0639\u0628\u062f\u0644 \u0622\u0628\u0627\u062f\",\"type\":{\"id\":2,\"key\":\"U\",\"name\":\"\u0627\u062a\u062d\u0627\u062f\u06cc\u0647\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":3,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646 \u0647\u0645\u062f\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"national_unique_id\":\"2\"},\"national_unique_id\":\"15556644\"}},\"tag\":{\"id\":1,\"code\":\"256666\",\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"organization\":{\"id\":1,\"name\":\"\u062c\u0647\u0627\u062f \u0627\u0633\u062a\u0627\u0646\",\"type\":{\"id\":1,\"key\":\"J\",\"name\":\"\u062c\u0647\u0627\u062f\"},\"province\":{\"id\":1,\"name\":\"\u0627\u0644\u0628\u0631\u0632\"},\"city\":{\"id\":1,\"name\":\"\u06a9\u0631\u062c\"},\"parent_organization\":null,\"national_unique_id\":\"1\"},\"status\":\"active\"},\"type\":{\"id\":1,\"name\":\"\u06af\u0648\u0633\u0641\u0646\u062f\"},\"use_type\":{\"id\":1,\"name\":\"\u0634\u06cc\u0631\u06cc\"},\"weight_type\":\"L\",\"species\":{\"id\":1,\"name\":\"\u0644\u0631\u06cc\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2},{\"id\":4,\"herd\":{\"creator_info\":\"\",\"modifier_info\":\"\",\"trash\":false,\"name\":\"\",\"photo\":\"\",\"code\":\"\",\"heavy_livestock_number\":null,\"light_livestock_number\":null,\"heavy_livestock_quota\":null,\"light_livestock_quota\":null,\"postal\":\"\",\"institution\":\"\",\"epidemiologic\":\"\",\"latitude\":null,\"longitude\":null,\"unit_unique_id\":\"\",\"activity\":null,\"activity_state\":false,\"operating_license_state\":false,\"capacity\":null,\"created_by\":null,\"modified_by\":null,\"owner\":null,\"cooperative\":null,\"province\":null,\"city\":null,\"contractor\":null},\"tag\":{\"code\":\"\",\"province\":null,\"city\":null,\"organization\":null,\"status\":\"\"},\"type\":{\"name\":\"\"},\"use_type\":{\"name\":\"\"},\"weight_type\":\"L\",\"species\":{\"name\":\"\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2},{\"id\":5,\"herd\":{\"creator_info\":\"\",\"modifier_info\":\"\",\"trash\":false,\"name\":\"\",\"photo\":\"\",\"code\":\"\",\"heavy_livestock_number\":null,\"light_livestock_number\":null,\"heavy_livestock_quota\":null,\"light_livestock_quota\":null,\"postal\":\"\",\"institution\":\"\",\"epidemiologic\":\"\",\"latitude\":null,\"longitude\":null,\"unit_unique_id\":\"\",\"activity\":null,\"activity_state\":false,\"operating_license_state\":false,\"capacity\":null,\"created_by\":null,\"modified_by\":null,\"owner\":null,\"cooperative\":null,\"province\":null,\"city\":null,\"contractor\":null},\"tag\":{\"code\":\"\",\"province\":null,\"city\":null,\"organization\":null,\"status\":\"\"},\"type\":{\"name\":\"\"},\"use_type\":{\"name\":\"\"},\"weight_type\":\"L\",\"species\":{\"name\":\"\"},\"birthdate\":\"2025-05-13T08:56:51.644360Z\",\"gender\":2},{\"id\":6,\"herd\":{\"creator_info\":\"\",\"modifier_info\":\"\",\"trash\":false,\"name\":\"\",\"photo\":\"\",\"code\":\"\",\"heavy_livestock_number\":null,\"light_livestock_number\":null,\"heavy_livestock_quota\":null,\"light_livestock_quota\":null,\"postal\":\"\",\"institution\":\"\",\"epidemiologic\":\"\",\"latitude\":null,\"longitude\":null,\"unit_unique_id\":\"\",\"activity\":null,\"activity_state\":false,\"operating_license_state\":false,\"capacity\":null,\"created_by\":null,\"modified_by\":null,\"owner\":null,\"cooperative\":null,\"province\":null,\"city\":null,\"contractor\":null},\"tag\":{\"code\":\"\",\"province\":null,\"city\":null,\"organization\":null,\"status\":\"\"},\"type\":{\"name\":\"\"},\"use_type\":{\"name\":\"\"},\"weight_type\":\"L\",\"species\":{\"name\":\"\"},\"birthdate\":\"2025-05-24T11:23:13.486799Z\",\"gender\":2},{\"id\":7,\"herd\":{\"creator_info\":\"\",\"modifier_info\":\"\",\"trash\":false,\"name\":\"\",\"photo\":\"\",\"code\":\"\",\"heavy_livestock_number\":null,\"light_livestock_number\":null,\"heavy_livestock_quota\":null,\"light_livestock_quota\":null,\"postal\":\"\",\"institution\":\"\",\"epidemiologic\":\"\",\"latitude\":null,\"longitude\":null,\"unit_unique_id\":\"\",\"activity\":null,\"activity_state\":false,\"operating_license_state\":false,\"capacity\":null,\"created_by\":null,\"modified_by\":null,\"owner\":null,\"cooperative\":null,\"province\":null,\"city\":null,\"contractor\":null},\"tag\":{\"code\":\"\",\"province\":null,\"city\":null,\"organization\":null,\"status\":\"\"},\"type\":{\"name\":\"\"},\"use_type\":{\"name\":\"\"},\"weight_type\":\"L\",\"species\":{\"name\":\"\"},\"birthdate\":\"2025-05-24T11:23:13.486799Z\",\"gender\":2}]}", "body_request": {}, "client_ip": "127.0.0.1", "browser_info": "PostmanRuntime/7.44.0", "log_created_at": "2025-05-24 16:04:27.478965", "user": "[{\"model\": \"authentication.user\", \"pk\": 2, \"fields\": {\"password\": \"pbkdf2_sha256$720000$n4WhejiwiZ1imDgkHKsQhe$aU2wEQj79wZIh/C6PnE6opbBhTC0SATu7Emv7wuQkXs=\", \"last_login\": null, \"is_superuser\": false, \"username\": \"moji\", \"first_name\": \"\u0645\u062c\u062a\u0628\u06cc\", \"last_name\": \"\u0630\u0648\u0627\u0644\u0641\u0642\u0627\u0631\u06cc\", \"email\": \"moji@gmail.com\", \"is_staff\": true, \"is_active\": true, \"date_joined\": \"2025-05-05T07:56:07.933Z\", \"create_date\": \"2025-05-05T07:56:08.109Z\", \"modify_date\": \"2025-05-05T07:56:08.109Z\", \"created_by\": null, \"modified_by\": null, \"creator_info\": null, \"modifier_info\": null, \"trash\": false, \"mobile\": \"09389657\", \"phone\": null, \"national_code\": \"4061080598\", \"birthdate\": null, \"nationality\": null, \"ownership\": \"N\", \"address\": null, \"photo\": null, \"province\": null, \"city\": null, \"otp_status\": false, \"is_herd_owner\": false, \"groups\": [], \"user_permissions\": []}}]"}}} \ No newline at end of file