mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Make sure that infering the Django User model works
This commit is contained in:
@@ -2,6 +2,11 @@ import datetime
|
||||
import decimal
|
||||
|
||||
from django.db import models
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
|
||||
#? str()
|
||||
User().email
|
||||
|
||||
|
||||
class Tag(models.Model):
|
||||
@@ -38,6 +43,9 @@ class BusinessModel(models.Model):
|
||||
|
||||
unidentifiable = NOT_FOUND
|
||||
|
||||
# -----------------
|
||||
# Model attribute inference
|
||||
# -----------------
|
||||
|
||||
model_instance = BusinessModel()
|
||||
#? int()
|
||||
|
||||
Reference in New Issue
Block a user