1
00:00:00,150 --> 00:00:00,880
Hello, friend.

2
00:00:00,900 --> 00:00:01,720
Welcome back.

3
00:00:01,920 --> 00:00:07,740
You know, previous video we have created on the form with using the jungle library from right.

4
00:00:07,960 --> 00:00:13,950
So here I have defined that username that another feel I have defined as an email address so far.

5
00:00:13,950 --> 00:00:17,540
Better understand if you open with our view source code.

6
00:00:17,550 --> 00:00:24,270
So here I simply defined as a view page source and with the Pacers here you can see that is our e-mail

7
00:00:24,270 --> 00:00:24,650
code.

8
00:00:25,020 --> 00:00:28,620
So that is our e-mail I have defined and that is our Jianguo form.

9
00:00:28,800 --> 00:00:29,130
Right.

10
00:00:29,440 --> 00:00:34,340
Scimitars Django from what exactly he did, he did automatically created on of the level.

11
00:00:34,360 --> 00:00:39,740
So that is are for an ID and into this automatically created on the level as the username.

12
00:00:40,050 --> 00:00:45,660
So this username I have defined, like if you go to that forms in the form here, you can say defined

13
00:00:45,660 --> 00:00:47,750
on the variable as it username.

14
00:00:48,030 --> 00:00:54,150
So automatically it's actually removing this underscore and then is displayed this time as it a name.

15
00:00:54,150 --> 00:00:56,040
So you can see it's not showing the user name.

16
00:00:56,370 --> 00:01:00,320
So that is the level and into the input type here I have defined.

17
00:01:00,330 --> 00:01:05,850
So here I have defined input type will be as a character field for the reasons for this input feel he

18
00:01:05,860 --> 00:01:08,100
is actually defining that type.

19
00:01:08,100 --> 00:01:10,350
So defining the type as a text type.

20
00:01:10,770 --> 00:01:14,280
OK, and also there is a name, so name is that user name.

21
00:01:14,290 --> 00:01:19,980
So here I have defined all of the variables, so it's all automatically getting this name as a user

22
00:01:19,980 --> 00:01:20,230
name.

23
00:01:20,300 --> 00:01:24,430
OK, Zeine e-mail code here you have to define the name as a user name.

24
00:01:24,660 --> 00:01:27,960
So right now by default, it's getting that our user name.

25
00:01:27,970 --> 00:01:30,400
That means this variable name as the user name.

26
00:01:30,750 --> 00:01:34,550
So for the business here, you can see snowshoeing as a name, as a user name, OK?

27
00:01:34,860 --> 00:01:38,470
And after that also by default is make the things as a vehicle.

28
00:01:38,700 --> 00:01:44,760
So in e-mail, we have to write down as a record, but you can see by default actually make the things

29
00:01:44,770 --> 00:01:50,550
as you because of all in a form that means into the jungle, that is a building form into the Django

30
00:01:50,550 --> 00:01:53,910
building form by default d to kill field as a true.

31
00:01:54,100 --> 00:02:01,530
OK, like if you go to one of the documentation site that is on the Django documentation side, if you

32
00:02:01,530 --> 00:02:04,740
go here you can see they have some the farm field.

33
00:02:04,780 --> 00:02:09,630
So that helps out the argument into this argument because they the record argument.

34
00:02:09,840 --> 00:02:13,650
So into this argument by default that will be as if true.

35
00:02:13,930 --> 00:02:18,930
OK, that means by default that will be as true for the original sequence, for the reasons here, it's

36
00:02:18,930 --> 00:02:20,260
not showing as required.

37
00:02:20,640 --> 00:02:25,330
So if you don't want to make that feel as if it could, then simple things you have to do.

38
00:02:25,330 --> 00:02:30,280
We have to add another attribute in particular, that area you have to define as a record.

39
00:02:31,930 --> 00:02:33,600
OK, you have to define his record.

40
00:02:33,600 --> 00:02:36,150
And with the record, you have to make the things as default.

41
00:02:37,440 --> 00:02:40,600
So as I told you, by default, it will be as a true.

42
00:02:40,620 --> 00:02:44,810
So right now, I want to define that argument as a record argument with this.

43
00:02:44,820 --> 00:02:46,740
I just simply defined as a false.

44
00:02:47,160 --> 00:02:48,770
So now what exactly shall we do?

45
00:02:48,780 --> 00:02:51,600
Like if you now click the save all.

46
00:02:52,770 --> 00:02:54,090
Now I have to check it.

47
00:02:54,340 --> 00:02:58,340
Everything is OK now I want to do and to refresh it again.

48
00:02:59,460 --> 00:03:05,340
And I want to open our viewers, Horsfall, again, yes, now, because you've been now automatically

49
00:03:05,340 --> 00:03:09,080
this field for this field, our district production is totally gone.

50
00:03:09,600 --> 00:03:11,970
I hope it is very much clear to you right now.

51
00:03:12,300 --> 00:03:18,120
And also for the user e-mail here, you can see there is a type defined as the email that each because

52
00:03:18,120 --> 00:03:24,720
of all here, I have defined that our user email CEDO, the user email form type I have defined as e-mail

53
00:03:24,720 --> 00:03:25,720
field tool.

54
00:03:25,740 --> 00:03:31,680
So for that email field automatically is getting that type will be updated as the email will occur and

55
00:03:31,680 --> 00:03:33,490
also to have some of the level.

56
00:03:33,630 --> 00:03:38,970
OK, so here, as I told you before, this level actually is getting that things by this hour, this

57
00:03:38,970 --> 00:03:39,510
variable.

58
00:03:39,840 --> 00:03:43,580
So automatically getting this variable and removed is on the line.

59
00:03:43,620 --> 00:03:47,100
OK, then it's actually displayed that level, in particular that area.

60
00:03:47,430 --> 00:03:51,180
So in e-mail, we have defined that level as a D1.

61
00:03:51,180 --> 00:03:53,310
So that is actually the level test as a full name.

62
00:03:53,340 --> 00:03:57,420
So right now, if you want to change that level like here by default, who is getting it?

63
00:03:57,660 --> 00:04:00,270
So if you want to change that level, how can do that work?

64
00:04:00,540 --> 00:04:06,390
So if you want to change it like here right now, in particular that position, I want to add another

65
00:04:06,390 --> 00:04:06,920
attribute.

66
00:04:07,140 --> 00:04:10,130
So as I told you before, the required by default are the true.

67
00:04:10,140 --> 00:04:15,750
So if you want to make that things as a blank, then automatically each will be added to OK rather than

68
00:04:15,750 --> 00:04:18,150
if you want to change it, you can change it with default.

69
00:04:18,480 --> 00:04:19,380
So right now it's OK.

70
00:04:19,380 --> 00:04:21,000
I just make the things as are true again.

71
00:04:21,690 --> 00:04:26,200
And also here I want to define another attribute as a level, OK?

72
00:04:26,220 --> 00:04:28,470
I just simply define another attribute at the level.

73
00:04:28,470 --> 00:04:31,730
And now I want to do I want to change that our level name.

74
00:04:31,740 --> 00:04:35,010
So I don't want to display that level as a user email.

75
00:04:35,220 --> 00:04:37,480
I want to make the things as a full name.

76
00:04:37,500 --> 00:04:39,720
OK, so this step up on the level I want to use.

77
00:04:40,260 --> 00:04:43,350
So I just simply defined as a full name.

78
00:04:43,830 --> 00:04:50,370
OK, and also for the email here, I want to define and at the level so to simply defend another level

79
00:04:50,370 --> 00:04:53,370
and for this one I define as the user

80
00:04:56,430 --> 00:04:57,490
user email.

81
00:04:58,170 --> 00:05:05,340
OK, I just simply name it that level as a user, that means this will be working for our this label,

82
00:05:05,350 --> 00:05:08,210
seen as we have defined that name as a full name.

83
00:05:08,220 --> 00:05:14,190
So now if you want to define that label in Django form, then you have to define this attribute as a

84
00:05:14,190 --> 00:05:15,480
label, as a full name.

85
00:05:15,750 --> 00:05:19,230
And for the email I have defined as a user email.

86
00:05:19,550 --> 00:05:24,090
OK, so now if you click as I save all I just because I save all.

87
00:05:24,780 --> 00:05:27,810
Now go outside and here, refresh it.

88
00:05:28,140 --> 00:05:33,120
Yes, you can see notes are perfectly updated as a full name and the user email.

89
00:05:33,600 --> 00:05:37,170
So here if you want to update it, I think it should be very much clear to you.

90
00:05:37,500 --> 00:05:43,500
And also here, if you go to our documentation here, also the step up, one of the all the data we

91
00:05:43,500 --> 00:05:48,450
would consider the level attribute and also there is a level suffix attribute.

92
00:05:48,460 --> 00:05:51,960
So, Peter, I will advise you to read these articles.

93
00:05:51,990 --> 00:05:55,140
OK, here you will get a lot of the things from this position.

94
00:05:55,350 --> 00:05:57,590
And also that is a initialize that mean.

95
00:05:57,600 --> 00:06:04,230
The initial initial is actually, if you want to compare with or estimate called Shirleys means that

96
00:06:04,440 --> 00:06:05,050
the value.

97
00:06:05,400 --> 00:06:09,500
So if you want to use some of the value in Django form, then how can do that work?

98
00:06:09,510 --> 00:06:12,270
So you can do that work with using this in the shell.

99
00:06:12,340 --> 00:06:19,200
OK, so I show you like here I just copied and now after that, OK, after that I want to take another

100
00:06:19,200 --> 00:06:25,260
attribute as the initial and into this initial I want to do and to define some of the name, whatever

101
00:06:25,260 --> 00:06:27,870
you want to just simply name it as well as a concept.

102
00:06:27,970 --> 00:06:30,230
OK, so that will be as a value.

103
00:06:30,240 --> 00:06:32,130
So into the investment code.

104
00:06:32,130 --> 00:06:35,460
If you define as a value as a Khasi, then it should be displayed.

105
00:06:35,460 --> 00:06:35,730
Right.

106
00:06:36,000 --> 00:06:39,720
So no and want displayed in our Django form into the initial.

107
00:06:39,720 --> 00:06:45,240
I simply named as a Khasi in our user name field area the save all.

108
00:06:46,300 --> 00:06:49,360
And now go here and refresh it.

109
00:06:49,690 --> 00:06:54,490
Yeah, now consisting of perfectly display as a cuzzi, so that's actually the value.

110
00:06:54,520 --> 00:06:58,490
So if you want to display this type of value, then you can use it with this initial.

111
00:06:58,510 --> 00:07:04,020
OK, so with this initial attribute you can displayed, I hope is very much clear to you.

112
00:07:04,360 --> 00:07:07,990
So, you know, next, we do want to discuss about some of the other attribute.

113
00:07:07,990 --> 00:07:10,120
How can you use it into that triangle form?

114
00:07:10,150 --> 00:07:12,330
I will show you that things with a live example.

115
00:07:12,820 --> 00:07:16,060
So thanks for watching and I will see you in the next video.
