Re: TypeError unsupported operand type(s) for *: 'NoneType' and 'int'

2019-04-07 Thread omar ahmed
ok i understood thanks for help On Sunday, April 7, 2019 at 11:58:50 AM UTC+2, Roger Gammans wrote: > > Omar, > > When posting question to the list it's good practice to practice tell us a > little bit about what your trying to do, and how what > actions cause the error to occur. > > In this

Re: TypeError unsupported operand type(s) for *: 'NoneType' and 'int'

2019-04-07 Thread Roger Gammans
Omar, When posting question to the list it's good practice to practice tell us a little bit about what your trying to do, and how what actions cause the error to occur. In this case though you only have a (single line in CalcPoints) which uses the '*' operator. On Sat, 2019-04-06 at 10:35

TypeError unsupported operand type(s) for *: 'NoneType' and 'int'

2019-04-06 Thread omar ahmed
models.py class Club(models.Model): league_names = models.ForeignKey(League, on_delete= models.CASCADE, related_name='club') name = models.CharField(max_length=100) logo = models.ImageField(upload_to='media/core', max_length=255, null=True, blank=True) won = models.IntegerField() draw =

Re: TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

2009-05-08 Thread Lee Hinde
xt_Num) >>>>>     return slug_with_number >>>>> >>>>> >>>>> >>>>> Traceback: >>>>> >>>>>   File "", line 2, in >>>>>   File >>>>> "/Users/leehinde/D

Re: TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

2009-05-08 Thread George Song
Users/leehinde/Documents/Clients/RecEnrollTNV/RecEnroll/recenrolltnv/../recenrolltnv/recenroll/models.py", >>>> line 314, in save >>>> self.Slug = buildSlug(start) >>>> File >>>> "/Users/leehinde/Documents/Clients/Rec

Re: TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

2009-05-08 Thread Lee Hinde
>   File >>> "/Users/leehinde/Documents/Clients/RecEnrollTNV/RecEnroll/recenrolltnv/../recenrolltnv/recenroll/models.py", >>> line 20, in buildSlug >>>     next_Num = get_SequenceNumber(slug) >>>   File "/Library/Python/2.5/site-packages/django/db/tran

Re: TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

2009-05-08 Thread Lee Hinde
>   File >> "/Users/leehinde/Documents/Clients/RecEnrollTNV/RecEnroll/recenrolltnv/../recenrolltnv/recenroll/models.py", >> line 20, in buildSlug >>     next_Num = get_SequenceNumber(slug) >>   File "/Library/Python/2.5/site-packages/

Re: TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

2009-05-08 Thread George Song
ages/django/db/transaction.py", > line 223, in _autocommit > return func(*args, **kw) > File > "/Users/leehinde/Documents/Clients/RecEnrollTNV/RecEnroll/recenrolltnv/../recenrolltnv/recenroll/models.py", > line 14, in get_SequenceNumber > sn.Next_Sequence_Number

TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

2009-05-08 Thread Lee Hinde
n/2.5/site-packages/django/db/transaction.py", line 223, in _autocommit return func(*args, **kw) File "/Users/leehinde/Documents/Clients/RecEnrollTNV/RecEnroll/recenrolltnv/../recenrolltnv/recenroll/models.py", line 14, in get_SequenceNumber sn.Next_Sequence_Number