I have the following code in the admin.py
#Aparated 1 implements a search engine in the admin
#Apart 2 and 3 Implement export and import options
The search engine is correctly displayed in the admin of django, but when I add sections 2 and 3,...
I surely have not formulated the question correctly, I explain what the problem is.
I have in the model:
models.py
class Muro(models.Model):
tema = models.ForeignKey(Tematica,
on_delete=models.CASCADE,
verbose_na...
The problem I have not to extend Django's model is that I need to create more than one type of user in particular two Student and Teacher each with attributes in common but with others own of each one, someone could give me some idea or example....
Good afternoon, as you can see I present the following problem:
error (1054, "Unknown column 'useriorol.id' in 'field list'") django 1.10
at the time of entering the administrator I select the useriorol option and I see this error. the admin....
I want to obtain the path of a file that I upload using a form but when printing the field returns a type None .
My models.py is this
class Insumo(models.Model):
nombre = models.CharField(max_length=50)
file = models.FileField...
I have worked with an ERP (Open Object) in which modules that affect module models are added, which allow us to add functions and fields. In django something similar is possible through Meta.proxy but this limits the possibility of creating new...
Cordial greeting.
I am in a table with users and when clicking I need to take the pk of the selected user to a form where a book will be created, so that this book is related to the user.
How can I do this process or how does it work?
m...
I have the Gammer model that is the User extension and the Competition model. many players can play a competition and a competition can have many players ( ManyToMany )
class Gammer(User):
competition = models.ManyToManyField(Compet...
I have the following Tables: Ticket , Manager and Services
Ticket has information such as creation date, manager, services and more. manager that has 2 fields name and percentage. and the services table that has 2 services and pric...
I need to relate a model in Django with it, without the field of the relationship being mandatory to fill it out. Thanks in advance.
Example:
class Cliente(models.Model):
codigo = models.CharField(verbose_name="Codigo")
nombre = mod...