Hello, friend.
Welcome back.
You know, previous video we have created on the form with using the jungle library from right.
So here I have defined that username that another feel I have defined as an email address so far.
Better understand if you open with our view source code.
So here I simply defined as a view page source and with the Pacers here you can see that is our e-mail
code.
So that is our e-mail I have defined and that is our Jianguo form.
Right.
Scimitars Django from what exactly he did, he did automatically created on of the level.
So that is are for an ID and into this automatically created on the level as the username.
So this username I have defined, like if you go to that forms in the form here, you can say defined
on the variable as it username.
So automatically it's actually removing this underscore and then is displayed this time as it a name.
So you can see it's not showing the user name.
So that is the level and into the input type here I have defined.
So here I have defined input type will be as a character field for the reasons for this input feel he
is actually defining that type.
So defining the type as a text type.
OK, and also there is a name, so name is that user name.
So here I have defined all of the variables, so it's all automatically getting this name as a user
name.
OK, Zeine e-mail code here you have to define the name as a user name.
So right now by default, it's getting that our user name.
That means this variable name as the user name.
So for the business here, you can see snowshoeing as a name, as a user name, OK?
And after that also by default is make the things as a vehicle.
So in e-mail, we have to write down as a record, but you can see by default actually make the things
as you because of all in a form that means into the jungle, that is a building form into the Django
building form by default d to kill field as a true.
OK, like if you go to one of the documentation site that is on the Django documentation side, if you
go here you can see they have some the farm field.
So that helps out the argument into this argument because they the record argument.
So into this argument by default that will be as if true.
OK, that means by default that will be as true for the original sequence, for the reasons here, it's
not showing as required.
So if you don't want to make that feel as if it could, then simple things you have to do.
We have to add another attribute in particular, that area you have to define as a record.
OK, you have to define his record.
And with the record, you have to make the things as default.
So as I told you, by default, it will be as a true.
So right now, I want to define that argument as a record argument with this.
I just simply defined as a false.
So now what exactly shall we do?
Like if you now click the save all.
Now I have to check it.
Everything is OK now I want to do and to refresh it again.
And I want to open our viewers, Horsfall, again, yes, now, because you've been now automatically
this field for this field, our district production is totally gone.
I hope it is very much clear to you right now.
And also for the user e-mail here, you can see there is a type defined as the email that each because
of all here, I have defined that our user email CEDO, the user email form type I have defined as e-mail
field tool.
So for that email field automatically is getting that type will be updated as the email will occur and
also to have some of the level.
OK, so here, as I told you before, this level actually is getting that things by this hour, this
variable.
So automatically getting this variable and removed is on the line.
OK, then it's actually displayed that level, in particular that area.
So in e-mail, we have defined that level as a D1.
So that is actually the level test as a full name.
So right now, if you want to change that level like here by default, who is getting it?
So if you want to change that level, how can do that work?
So if you want to change it like here right now, in particular that position, I want to add another
attribute.
So as I told you before, the required by default are the true.
So if you want to make that things as a blank, then automatically each will be added to OK rather than
if you want to change it, you can change it with default.
So right now it's OK.
I just make the things as are true again.
And also here I want to define another attribute as a level, OK?
I just simply define another attribute at the level.
And now I want to do I want to change that our level name.
So I don't want to display that level as a user email.
I want to make the things as a full name.
OK, so this step up on the level I want to use.
So I just simply defined as a full name.
OK, and also for the email here, I want to define and at the level so to simply defend another level
and for this one I define as the user
user email.
OK, I just simply name it that level as a user, that means this will be working for our this label,
seen as we have defined that name as a full name.
So now if you want to define that label in Django form, then you have to define this attribute as a
label, as a full name.
And for the email I have defined as a user email.
OK, so now if you click as I save all I just because I save all.
Now go outside and here, refresh it.
Yes, you can see notes are perfectly updated as a full name and the user email.
So here if you want to update it, I think it should be very much clear to you.
And also here, if you go to our documentation here, also the step up, one of the all the data we
would consider the level attribute and also there is a level suffix attribute.
So, Peter, I will advise you to read these articles.
OK, here you will get a lot of the things from this position.
And also that is a initialize that mean.
The initial initial is actually, if you want to compare with or estimate called Shirleys means that
the value.
So if you want to use some of the value in Django form, then how can do that work?
So you can do that work with using this in the shell.
OK, so I show you like here I just copied and now after that, OK, after that I want to take another
attribute as the initial and into this initial I want to do and to define some of the name, whatever
you want to just simply name it as well as a concept.
OK, so that will be as a value.
So into the investment code.
If you define as a value as a Khasi, then it should be displayed.
Right.
So no and want displayed in our Django form into the initial.
I simply named as a Khasi in our user name field area the save all.
And now go here and refresh it.
Yeah, now consisting of perfectly display as a cuzzi, so that's actually the value.
So if you want to display this type of value, then you can use it with this initial.
OK, so with this initial attribute you can displayed, I hope is very much clear to you.
So, you know, next, we do want to discuss about some of the other attribute.
How can you use it into that triangle form?
I will show you that things with a live example.
So thanks for watching and I will see you in the next video.