Custom model field data type

34 views
Skip to first unread message

Berry

unread,
May 7, 2018, 9:42:47 AM5/7/18
to Django users
I created a custom PositiveBigIntegerField data type in models.py, which is a sub class of the BigIntegerField. I registered the model where the PositiveBigIntegerField is used in the admin site. When I try to add een item using the admin site, the 'add' button raises an error, telling me PositiveBigIntegerField is not defined.

Exception Type: NameError
Exception Value: name 'BigIntegerField' is not defined

Where and how do I import the custom data type, so it is defined in de admin site

JAGADESH M

unread,
May 7, 2018, 10:15:11 AM5/7/18
to django...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6f86a82f-a2de-438c-a559-86bed3d53a14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages