Error seems to be in allotment_exam.Examname model.
The model code which you have pastes is of “Exam”
Regards,
Parth Joshi
> On 10-Nov-2019, at 11:34 AM, Mohan Goud wrote:
>
>
>
> I have to import the data into models from excel sheet from admin site and
> the code is
>
> models.py
>
I have to import the data into models from excel sheet from admin site and
the code is
models.py
class Exam(models.Model): Examname = models.CharField(null=False,
blank=False, max_length=255)
class Meta: unique_together = ["Examname"]
def *str*(self): return self.Examname
admin.py
@admin.regist
2 matches
Mail list logo