Testcase raise "OperationalError: no such table" when there are some SystemCheckError

8 views
Skip to first unread message

朱涧江

unread,
Sep 22, 2015, 7:59:24 AM9/22/15
to Django users
class TicketReview(models.Model):
    user = models.ForeignKey(User, null=True)
    admin_user = models.ForeignKey(
        User, #related_name="admin_user",#here is SystemCheckError
        null=True) 


Maybe there can be some friendly error raise,rather than raise ` OperationalError: no such table`

Reply all
Reply to author
Forward
0 new messages