django-model-field Questions

2

I am getting this error django.core.exceptions.FieldError: Unsupported lookup 'icontains' for ForeignKey or join on the field not permitted Below is models.py: class Author(models.Model): first_na...
Wonted asked 5/6, 2023 at 12:42

6

Solved

I need to store a U.S. $ dollar amount in a field of a Django model. What is the best model field type to use? I need to be able to have the user enter this value (with error checking, only want a ...
Werewolf asked 16/7, 2009 at 18:23

1

Solved

I'm working on a Python(3.6) & Django(1.10) project in which I need to save some user credentials of the third party services like username, password, and email, I'm implementing only rest API,...

1

Solved

I am trying to get the documents property in a general function, but a few models may not have the documents attribute. Is there any way to first check if a model has the documents property, and th...
Degeneration asked 16/10, 2012 at 3:1
1

© 2022 - 2025 — McMap. All rights reserved.