invalid literal for int() with base 10: 'admin'

2019-06-24 Thread Harshit Agarwal
a\Anaconda3\lib\site-packages\django\db\models\fields\__init__.py" in get_prep_value 965. return int(value) Exception Type: ValueError at /admin/ Exception Value: invalid literal for int() with base 10: 'admin' -- You received this message because you are subscribed to the Goog

Re: invalid literal for int() with base 10: 'admin'

2019-06-25 Thread Sipum Mishra
; File > "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\lookups.py" in > get_prep_lookup > 70. return self.lhs.output_field.get_prep_value(self.rhs) > > File > "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\fields\__init__.py&q

Re: invalid literal for int() with base 10: 'admin'

2019-06-25 Thread Harshit
t; "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\sql\query.py" >> in build_lookup >> 1096. lookup = lookup_class(lhs, rhs) >> >> File >> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\lookups.py" in >> _

Re: invalid literal for int() with base 10: 'admin'

2019-06-25 Thread Sipum Mishra
" >>> in add_q >>> 1263. clause, _ = self._add_q(q_object, self.used_aliases) >>> >>> File >>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\sql\query.py" >>> in _add_q >>> 1287. split_subq=spl

Re: invalid literal for int() with base 10: 'admin'

2019-06-25 Thread Harshit
t; File >>>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\query.py" in >>>> _filter_or_exclude >>>> 862. clone.query.add_q(Q(*args, **kwargs)) >>>> >>>> File >>>> "C:\ProgramDat

Re: invalid literal for int() with base 10: 'admin'

2019-06-25 Thread onyilimba martins mclaren tochukwu
I guess it's Django 2.2? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-u

Re: invalid literal for int() with base 10: 'admin'

2019-06-26 Thread Sipum Mishra
Your problem is, in url you are passing id to detailview, but in views.py you have done anything with that... Check this again. On Wed, 26 Jun, 2019, 4:01 AM onyilimba martins mclaren tochukwu, < tochimcla...@gmail.com> wrote: > I guess it's Django 2.2? > > -- > You received this message because

Re: invalid literal for int() with base 10: 'admin'

2019-06-26 Thread Piotr Duda
t; 1287. split_subq=split_subq, >>> >>> File >>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\sql\query.py" >>> in build_filter >>> 1225. condition = self.build_lookup(lookups, col, value) >>

Re: invalid literal for int() with base 10: 'admin'

2019-06-27 Thread Harshit
\Anaconda3\lib\site-packages\django\db\models\query.py" in >>>> _filter_or_exclude >>>> 862. clone.query.add_q(Q(*args, **kwargs)) >>>> >>>> File >>>> "C:\ProgramData\Anaconda3\lib\site-packages\django\db\models\sql\query.py&