hello everyone, please help me with this error that is generated in the
views.py, in class registro(CreateView):
Thank you
form.py
class RegistrationForm(forms.ModelForm):
password = forms.CharField(label='Password', widget=forms.PasswordInput)
class Meta:
model = UserProfile
since you are using .first() in the query, it will return only 1 object so
I don't think using a for loop our 'category' in template will work
On Mon, 18 Oct 2021 at 18:04, Katharine Wong
wrote:
> Hi all,
>
> There is a question when I use distinct().
> When I try to use the ORM(distinct &
Greetings, I am starting in the world of django and I have some problems
with a custom user, for the registration of users to the database, the
example that I have works 100% with the user that comes by default allows
me to render the registration form user without any inconvenience, but when
Greetings, I am starting in the world of django and I have some problems
with a custom user, for the registration of users to the database, the
example that I have works 100% with the user that comes by default allows
me to render the registration form user without any inconvenience, but when
Saludos, me estoy iniciando en el mundo de django y tengo algunos problemas
con un usuario personalizado, para el registro de usuarios a la base de
datos, el ejemplo que tengo funciona al 100% con el usuario que viene por
defecto me permite renderizar el formulario de registro de usuario sin
On Mon, 18 Oct 2021 at 15:41, Sebastian Jung
wrote:
> When u use SelectMultiple then you get a select widget where you can
> select many options Your code are wrong in forms.py in widgets=
>
> Am Mo., 18. Okt. 2021 um 16:22 Uhr schrieb 'Maryam Yousaf' via Django
> users :
>
>> It is
When u use SelectMultiple then you get a select widget where you can select
many options Your code are wrong in forms.py in widgets=
Am Mo., 18. Okt. 2021 um 16:22 Uhr schrieb 'Maryam Yousaf' via Django users
:
> It is already selectmultiple . I need dropdown where I can select multiple
Hello,
then change in widgets Select() to SelectMultiple().
https://docs.djangoproject.com/en/3.2/ref/forms/widgets/#selectmultiple
Regards
Am Mo., 18. Okt. 2021 um 15:51 Uhr schrieb 'Maryam Yousaf' via Django users
:
> Hi,
>
> I have one manytomany field in one of my model which is currently
Hi,
I have one manytomany field in one of my model which is currently coming as
Multiselect but I need a dropdown where user can select multiple values as
I have huge data to show.
I am trying this in forms.py but it is not showing dropdown field.
Kindly help me out.
*Model.py:*
class
Hi all,
There is a question when I use distinct().
When I try to use the ORM(distinct & value), I cannot get the value of the
attribute(foreign key).
models.py
class Category(models.Model):
category = models.CharField(max_length=20)
class Article(models.Model):
category =
Hi all, I have a similar issue on my DB.
Internal Server Error: /ms_app/customers/19
Traceback (most recent call last):
File
"/Users/nicholasbartlett/Documents/Dashboard/djangodash/djenv/lib/python3.8/site-packages/django/core/handlers/exception.py",
line 47, in inner
response =
Dear Team,
I recently learned django tutorials on django's website, which has
tutorials in Chinese, but it's not convenient to visit django's website in
my work environment. Is there any way to download the Chinese version of
Django tutorial PDF file or epub file?
--
You received this message
12 matches
Mail list logo