-1

I have developed a project for SASS with django tenate. While migratiing, I got the following error

it seems, like it is related to migration file.

(acc_venv) D:\\workik_projects\\AccrediDoc_v2\>py manage.py makemigrations report
  
Traceback (most recent call last):
  
  File "D:\\workik_projects\\AccrediDoc_v2\\manage.py", line 22, in \<module\>
  
    main()
  
  File "D:\\workik_projects\\AccrediDoc_v2\\manage.py", line 19, in main
  
    execute_from_command_line(sys.argv)
  
  File "D:\\workik_projects\\AccrediDoc_v2\\acc_venv\\lib\\site-packages\\django\\core\\management\\\__init_\_.py", line 442, in execute_from_command_line
  
    utility.execute()
  
  File "D:\\workik_projects\\AccrediDoc_v2\\acc_venv\\lib\\site-packages\\django\\core\\management\\\__init_\_.py", line 436, in execute
  
    self.fetch_command(subcommand).run_from_argv(self.argv)
  
  File "D:\\workik_projects\\AccrediDoc_v2\\acc_venv\\lib\\site-packages\\django\\core\\management\\base.py", line 416, in run_from_argv
  
    self.execute(\*args, \*\*cmd_options)
  
  File "D:\\workik_projects\\AccrediDoc_v2\\acc_venv\\lib\\site-packages\\django\\core\\management\\base.py", line 457, in execute
  
    self.check(\*\*check_kwargs)
  
  File "D:\\workik_projects\\AccrediDoc_v2\\acc_venv\\lib\\site-packages\\django\\core\\management\\base.py", line 492, in check
  
    all_issues = checks.run_checks(
  
  File "D:\\workik_projects\\AccrediDoc_v2\\acc_venv\\lib\\site-packages\\django\\core\\checks\\registry.py", line 89, in run_checks
  
    new_errors = check(app_configs=app_configs, databases=databases)
  
  File "D:\\workik_projects\\AccrediDoc_v2\\acc_venv\\lib\\site-packages\\django\\contrib\\auth\\checks.py", line 101, in check_user_model
  
    if isinstance(cls().is_anonymous, MethodType):
  
  File "D:\\workik_projects\\AccrediDoc_v2\\acc_venv\\lib\\site-packages\\django\\db\\models\\base.py", line 537, in \__init_\_
  
    val = field.get_default()
  
  File "D:\\workik_projects\\AccrediDoc_v2\\acc_venv\\lib\\site-packages\\django\\db\\models\\fields\\related.py", line 1176, in get_default
  
    if isinstance(field_default, self.remote_field.model):
  
TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union
1
  • 1
    Welcome to stack overflow. Please do not just dump your error trace, instead make sure to contain an minimal reproducible example in your question. Also, make sure to attentively read your error and try to research a solution. Include your findings in the question. A good starting point will be the two last lines of your error trace. They contain the failure reason and the exact line of code it occured. Try expanding from there Commented Nov 6 at 9:47

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.