For questions concerning use of the model class from the web framework Django.
I'm working on a multi-tenanted application in which some users can define their own data fields (via the admin) to …
python django dynamic django-models django-custom-managerI have a form like this: class My_Form(ModelForm): class Meta: model = My_Class fields = ('first_name', 'last_name' , …
django django-forms optional django-modelsI have a model that has many fields, however for this problem I only need 3 of those fields. When I …
python json django django-models django-serializerI'm trying to get model objects instance in another one and I raise this error : Manager isn't accessible via topic …
django django-models instance django-managersI have a basic model named "Places" which has this view: def view_index(request, place_name): The user will …
django django-models django-views django-urlsIn Django, queryset provides a method called get_or_create that either returns an objects or creates an object. However, …
django django-models django-querysetConsider simple Django models Event and Participant: class Event(models.Model): title = models.CharField(max_length=100) class Participant(models.Model): …
python django django-models django-aggregationI have a simple Employee model that includes firstname, lastname and middlename fields. On the admin side and likely elsewhere, …
python django-models django-adminI want to create a field in Django models.py which will render as a dropdown and user can select …
django django-models django-formsThe Django docs only list examples for overriding save() and delete(). However, I'd like to define some extra processing for …
django django-models django-forms