I am new in python as well as Django. i got error (IndentationError: unindent does not match any outer indentation level) line 36 model.py
below is my code
class Load_ProviderRegistration(models.Model):
def number(): // i got error in this line
no = Load_ProviderRegistration.objects.count()
if no == None:
return 1
else:
return no + 1
Load_Provider_id = models.IntegerField(unique=True,default=number)
Load_Provider_name = models.CharField(max_length=50)
address = models.CharField(max_length=100)
contact = models.CharField(max_length=13)