Monday, May 7, 2018

Re: Custom model field data type


On Mon, May 7, 2018 at 3:31 PM, 'Berry' via Django users <django-users@googlegroups.com> wrote:
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

--
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-users@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.

--
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-users@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/CAD66v%3DF2uuqwcbGA46n5Fs1gzjjBP%3D_H7rhp4A1VMx%3DYCp_hWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment