1
00:00:00,180 --> 00:00:06,350
Hello, friend will come back in a previous video I have already discussed about that form validation,

2
00:00:06,450 --> 00:00:06,840
right.

3
00:00:07,020 --> 00:00:12,480
So in this video, I want to discuss about how you can add your all that model data into the form.

4
00:00:12,990 --> 00:00:16,050
Seeing Django, they have some of the building functionality.

5
00:00:16,070 --> 00:00:22,290
So with this functionality, you can actually create some of the form without getting an e-mail from,

6
00:00:22,320 --> 00:00:24,720
OK, how much easily you can create this?

7
00:00:24,720 --> 00:00:25,510
I will show you.

8
00:00:25,800 --> 00:00:30,570
So right now that is our application into the application and that is our farms.

9
00:00:30,570 --> 00:00:30,820
Right.

10
00:00:31,080 --> 00:00:34,950
So before I have already discussed about that validations right now, we don't need this.

11
00:00:34,950 --> 00:00:37,770
I just simply remove everything from here.

12
00:00:38,610 --> 00:00:41,590
So I have already created some of the model class.

13
00:00:41,620 --> 00:00:47,220
So if you go to that our first application into the model and into the model here, you can see I define

14
00:00:47,220 --> 00:00:49,350
some of the class as a musician.

15
00:00:49,350 --> 00:00:54,800
So into this musician, I have defined some of the field as a fast name, the last name and the instrument.

16
00:00:54,810 --> 00:00:55,080
Right.

17
00:00:55,560 --> 00:01:00,790
So here right now, I want to do I want to create some of the form with this all that field.

18
00:01:00,840 --> 00:01:02,640
So here are the three fields.

19
00:01:02,640 --> 00:01:07,630
So automatically is will be created in the form with this all that field.

20
00:01:07,650 --> 00:01:09,900
So how can do that work in this video.

21
00:01:09,960 --> 00:01:13,470
I want to show you that things with the live example for doing this.

22
00:01:13,480 --> 00:01:16,540
First of all, we have to do we have to add our this model.

23
00:01:16,560 --> 00:01:19,070
OK, that means here we have to add these models.

24
00:01:19,350 --> 00:01:21,620
So we have to add it in our form area.

25
00:01:21,660 --> 00:01:26,480
That means in our form here, first of all, first of all, here we have to add it.

26
00:01:26,610 --> 00:01:30,700
I just simply defined so you can actually add this with two different way.

27
00:01:30,720 --> 00:01:34,720
First of all, you can add it as a form and then your faster.

28
00:01:35,040 --> 00:01:40,400
That means our first application name right into the first application, into the first application.

29
00:01:40,410 --> 00:01:42,390
They have also one of the models.

30
00:01:42,900 --> 00:01:48,960
So just simply define our these models and then you can actually import then you can import your album,

31
00:01:49,650 --> 00:01:51,380
our models, all the names.

32
00:01:51,380 --> 00:01:54,120
So here I have defined two of this, one of the album.

33
00:01:54,120 --> 00:01:55,140
Another is a musician.

34
00:01:55,140 --> 00:01:55,420
Right.

35
00:01:55,440 --> 00:01:56,760
So there are two class.

36
00:01:57,090 --> 00:01:59,890
So you have to define two of the songs here as the album.

37
00:02:00,750 --> 00:02:01,760
OK, album.

38
00:02:01,770 --> 00:02:04,890
And also if you want to add another one as a musician.

39
00:02:06,250 --> 00:02:07,940
So just simply defined two of this.

40
00:02:08,220 --> 00:02:13,230
So that is actually one of the process rather than if you want to directly get all that model, then

41
00:02:13,230 --> 00:02:18,390
you can also define that another way you can do that things with the form and is the form.

42
00:02:18,390 --> 00:02:25,370
That is our first step for step application and this application you can import directly.

43
00:02:25,530 --> 00:02:28,060
So just simply directly import our models.

44
00:02:28,560 --> 00:02:35,490
So here I directly added our building Django function as a models so you can add a both of this right

45
00:02:35,490 --> 00:02:35,660
now.

46
00:02:35,670 --> 00:02:37,260
I actually want to use this one.

47
00:02:37,440 --> 00:02:39,960
OK, so right now I just simply remove it from here.

48
00:02:40,650 --> 00:02:41,150
Perfect.

49
00:02:41,670 --> 00:02:44,430
And now we have to do we have to create one of the class.

50
00:02:44,440 --> 00:02:44,730
Right.

51
00:02:44,770 --> 00:02:46,020
So right now we don't need this.

52
00:02:46,020 --> 00:02:53,580
I just simply need be know what to do and to create one of the class as a musician musician form.

53
00:02:55,560 --> 00:03:01,230
OK, just name it as a musician form and in particular that position we have to integrate with our forms.

54
00:03:02,040 --> 00:03:02,350
Right.

55
00:03:02,420 --> 00:03:08,940
So that forms and into this form I want to do on Dex's another one of the class as a model for class

56
00:03:08,970 --> 00:03:15,360
like this, a be defined as a model model and then form on the class.

57
00:03:15,430 --> 00:03:20,070
OK, so this class will be inherited without this form.

58
00:03:20,090 --> 00:03:25,350
So that means here with these forms, I want to access another model as that is our model forms.

59
00:03:25,800 --> 00:03:28,760
So into this class I want to do I want to create another class.

60
00:03:28,760 --> 00:03:33,780
So for the regions here, if you want to create another class inside, I want one class, then you have

61
00:03:33,780 --> 00:03:35,550
to define that as a class matter.

62
00:03:35,820 --> 00:03:38,550
So I just simply defined the class and the matter.

63
00:03:38,700 --> 00:03:44,070
OK, so if you want to define some of the class inside the class, then you have to defining it as a

64
00:03:44,070 --> 00:03:44,790
class matter.

65
00:03:44,790 --> 00:03:48,990
So here I just simply defined that class matter and in particular that position.

66
00:03:48,990 --> 00:03:52,500
We have to define our all the models right now.

67
00:03:52,620 --> 00:03:56,080
I want to working with our this model, all that feel right.

68
00:03:56,100 --> 00:03:59,760
So this field I want to define as the one of the form.

69
00:04:00,030 --> 00:04:03,870
So for the results here, I want to do I want to define one of the model.

70
00:04:04,170 --> 00:04:06,000
I did one of the variable as a model.

71
00:04:06,000 --> 00:04:11,030
And then without these models, that means here I have already improved our models.

72
00:04:11,400 --> 00:04:12,680
So with these models.

73
00:04:13,020 --> 00:04:19,400
So with this model, I want to do in Texas our class name, our class name as a musician.

74
00:04:19,410 --> 00:04:19,770
Right.

75
00:04:20,040 --> 00:04:21,360
That means the mediation table.

76
00:04:21,390 --> 00:04:26,040
So here I just simply define our musician table and into the mediation table.

77
00:04:26,060 --> 00:04:28,750
Who is that how you want to take into the musicians table?

78
00:04:28,770 --> 00:04:31,060
I want to take actually all that field data.

79
00:04:31,110 --> 00:04:31,470
Right.

80
00:04:31,470 --> 00:04:33,650
There is a first name, last name and the instrument.

81
00:04:33,960 --> 00:04:36,330
So here I want to take all the field data.

82
00:04:36,600 --> 00:04:40,040
So if you want to get all that field, then here you have to do it.

83
00:04:40,050 --> 00:04:43,730
Here you have to define as a field, OK?

84
00:04:43,950 --> 00:04:46,500
You have to define the fields and the fields.

85
00:04:46,500 --> 00:04:52,770
I wanted to define all so here along the line and then all and then double on the line.

86
00:04:53,210 --> 00:04:59,720
OK, so with this you can actually get all that uniform data from your musician table that.

87
00:04:59,970 --> 00:05:05,850
From our musician class, OK, to this musician class, I have defined the field so automatically it

88
00:05:05,850 --> 00:05:10,570
will be get all the field and I just take the things with this model perfect.

89
00:05:11,160 --> 00:05:16,400
So here I take all the tower field and a flower class as our musician class.

90
00:05:16,410 --> 00:05:16,680
Right.

91
00:05:16,980 --> 00:05:19,590
So now I want to do I want to actually view it.

92
00:05:19,600 --> 00:05:24,390
So if you want to view it, we have to do we have to work in our view that our application and there

93
00:05:24,390 --> 00:05:24,990
is our view.

94
00:05:25,560 --> 00:05:28,610
So previously I have working in particular that positions.

95
00:05:28,620 --> 00:05:29,850
Right now we don't need this.

96
00:05:29,850 --> 00:05:33,330
I just simply remove everything from here.

97
00:05:33,330 --> 00:05:34,680
I want to study it again.

98
00:05:35,010 --> 00:05:37,100
Like, first of all, that is our new form.

99
00:05:37,110 --> 00:05:39,780
So here I want to do want to create one of the object.

100
00:05:39,780 --> 00:05:43,760
I want to create the object with this form, and that is our class.

101
00:05:43,770 --> 00:05:46,820
So here at the front of the class name as a musician form.

102
00:05:47,430 --> 00:05:50,060
So I just simply defined that our object.

103
00:05:50,070 --> 00:05:55,920
OK, so with this form, first of all, I just simplified of the object and after that I want to do

104
00:05:55,920 --> 00:06:01,830
I want to define all of the conditions I defined as the if condition, if our request.

105
00:06:01,830 --> 00:06:03,150
First of all, I want to check it.

106
00:06:03,150 --> 00:06:07,580
It should be the post method or not because of all I want to actually save all the data.

107
00:06:07,890 --> 00:06:13,800
Like if you go to our site, I have already created one of the forms and lauded in our home.

108
00:06:14,100 --> 00:06:16,260
And here you can see I have already defining it.

109
00:06:16,260 --> 00:06:16,490
Right.

110
00:06:16,500 --> 00:06:19,160
So this form actually comes from our database area.

111
00:06:19,500 --> 00:06:22,310
So if you go to our back, end into this bakin.

112
00:06:22,330 --> 00:06:26,230
So that is our here I display our musician.

113
00:06:26,850 --> 00:06:31,450
So now if you go to that musician into the musician, right now they have the two data.

114
00:06:31,530 --> 00:06:38,250
If you want to add new musician like here, I just take me to the test and last name as a last test

115
00:06:39,420 --> 00:06:41,190
and then instrument.

116
00:06:41,190 --> 00:06:44,640
I just simply defined the Ironist test just for education purpose.

117
00:06:44,660 --> 00:06:47,940
I want to insert some of the data because it's safe.

118
00:06:48,180 --> 00:06:50,790
Now you can see our data is added successfully.

119
00:06:50,800 --> 00:06:52,110
So now there is another one.

120
00:06:52,110 --> 00:06:56,720
And also if you now refresh it now with this now perfectly added on here.

121
00:06:57,090 --> 00:06:59,580
So I have already defined this part, right.

122
00:06:59,590 --> 00:07:01,470
So here I have already defined this part.

123
00:07:01,470 --> 00:07:04,980
And also I displayed in particular that area with our view.

124
00:07:05,370 --> 00:07:08,130
So here you can see I have already discussed about that things with you.

125
00:07:08,130 --> 00:07:08,390
Right.

126
00:07:08,790 --> 00:07:11,730
So now I want to do I want to insert this same data.

127
00:07:11,730 --> 00:07:13,290
I want to insert the same data.

128
00:07:13,290 --> 00:07:16,650
First of all, here, I want to do find another form for this one.

129
00:07:16,890 --> 00:07:19,830
So from to this farm area, I want to start our first name.

130
00:07:19,830 --> 00:07:22,950
That means the musician, first name, last name and the instrument.

131
00:07:23,340 --> 00:07:26,840
So for the reasons here I want to do, I define all that are formed.

132
00:07:27,020 --> 00:07:33,180
Also here you this model, there are three that are that the musician class to have the three data so

133
00:07:33,180 --> 00:07:38,130
that in the three field data, also the three feel that I have defined that things are familiar with

134
00:07:38,130 --> 00:07:38,610
the field.

135
00:07:38,610 --> 00:07:39,660
All right.

136
00:07:39,870 --> 00:07:44,190
So now we have to define what this form for the reasons here, I want to define that F condition.

137
00:07:44,400 --> 00:07:46,560
And if I first of all, I want to check it.

138
00:07:46,560 --> 00:07:48,810
This is actually the post method or not.

139
00:07:49,050 --> 00:07:52,860
So for the results, what exactly we did, I have already discussed about the things we do.

140
00:07:52,860 --> 00:07:56,640
We have to define that things with our method as opposed post not right.

141
00:07:56,910 --> 00:08:06,090
So I just simply defined the request request and then I thought, OK, request method, I'll post.

142
00:08:06,990 --> 00:08:09,000
So to simply defined as a post or not.

143
00:08:09,210 --> 00:08:12,390
And then I want to do I want to define our new form.

144
00:08:12,390 --> 00:08:16,470
That means in particular that position before I have already done it.

145
00:08:16,680 --> 00:08:18,890
So now we have to take our all the data.

146
00:08:19,320 --> 00:08:21,510
So here are all the data.

147
00:08:21,510 --> 00:08:22,620
I have to load it.

148
00:08:22,620 --> 00:08:26,550
So for the reasons in our with this new form area, I want to load it.

149
00:08:27,090 --> 00:08:30,300
So therefore I'm OK with this forms.

150
00:08:30,300 --> 00:08:31,030
I want to do.

151
00:08:31,050 --> 00:08:33,540
I want to define our this musician from data.

152
00:08:34,260 --> 00:08:38,370
That means here I have already created the object and in particular that area.

153
00:08:38,670 --> 00:08:40,320
I want to define our request.

154
00:08:40,410 --> 00:08:46,590
That means our distinguished it all that force method, that is the data so just simply defined as a

155
00:08:46,590 --> 00:08:48,390
post Gutfreund.

156
00:08:48,780 --> 00:08:51,030
So I hope you can well understand about it.

157
00:08:51,210 --> 00:08:56,640
And after that I want to do I want to also define like first of all, I want to load all that.

158
00:08:56,640 --> 00:09:02,820
Our feed will be loaded and then it'll be insert this data, OK, this will be insert this data aspecific

159
00:09:02,820 --> 00:09:06,180
our this model area that means in our musician model.

160
00:09:06,600 --> 00:09:11,280
So for doing this, I want to do I want to define another condition.

161
00:09:11,820 --> 00:09:15,060
So here also that you you added the column.

162
00:09:15,090 --> 00:09:19,440
OK, so there is actually a column that the request perfect.

163
00:09:19,680 --> 00:09:22,410
And after that I want to actually check it for checking this.

164
00:09:22,410 --> 00:09:24,990
You have to define as the if condition.

165
00:09:24,990 --> 00:09:31,050
I want to define another live condition and then without this new form into this new form, I define

166
00:09:31,050 --> 00:09:32,010
as is valid.

167
00:09:32,580 --> 00:09:34,380
It underscore valid.

168
00:09:35,070 --> 00:09:37,600
Say I want to check it is valid or not.

169
00:09:37,600 --> 00:09:40,680
So if it is valid, then I want to commit this data.

170
00:09:41,010 --> 00:09:45,180
So I just simply define in our new form area I want to do to save it.

171
00:09:45,660 --> 00:09:46,950
I want to save this data.

172
00:09:46,950 --> 00:09:53,130
So I just simply defined the comet, OK, with this comet it actually save your all the data.

173
00:09:53,130 --> 00:09:54,570
So I just simply find out the truth.

174
00:09:55,110 --> 00:09:59,550
And also when I want this form, that means here whenever this form.

175
00:09:59,910 --> 00:10:02,400
We commit and commit with our all the data.

176
00:10:02,430 --> 00:10:04,270
Then what exactly should be redacted?

177
00:10:04,590 --> 00:10:06,520
Also, you can define that things on here.

178
00:10:06,750 --> 00:10:09,670
I want to do two redacted in our index methode.

179
00:10:09,700 --> 00:10:11,460
OK, that Misener index function.

180
00:10:11,760 --> 00:10:13,010
So into the index function.

181
00:10:13,020 --> 00:10:15,060
I have already loaded our displays.

182
00:10:15,070 --> 00:10:19,740
That means I want to do I want to load off all the pages in our formula.

183
00:10:20,010 --> 00:10:26,060
That means here I want to load it all that our model data and then when it shall be submitted then it

184
00:10:26,130 --> 00:10:27,330
have to either submitted.

185
00:10:27,330 --> 00:10:30,680
I want to do I want to read it to our this index base.

186
00:10:30,960 --> 00:10:34,610
So for the index I have already created not the function as index function.

187
00:10:34,650 --> 00:10:34,960
Right.

188
00:10:35,220 --> 00:10:37,350
So now I have to pass it on here.

189
00:10:37,770 --> 00:10:46,590
So after that I just simply defined the return and return our index it be past our index function area.

190
00:10:46,710 --> 00:10:49,360
So into this index function tab also on the request.

191
00:10:49,950 --> 00:10:53,250
So I just simply defined this request, OK.

192
00:10:54,240 --> 00:10:59,130
I hope, you know, it should be very much clear to you what exactly the things I did on particular

193
00:10:59,130 --> 00:11:04,690
that area and also for access our form that meets our formula.

194
00:11:04,830 --> 00:11:08,430
So they had our formula for success, this formula.

195
00:11:08,610 --> 00:11:10,520
I want to do in our index here.

196
00:11:10,530 --> 00:11:12,430
I want to add another bottom.

197
00:11:12,930 --> 00:11:19,800
So if you want to add this button that is in our index base, that means in our template into the template,

198
00:11:19,800 --> 00:11:25,200
our first application index into the index here, you can see that it is lower tax.

199
00:11:25,200 --> 00:11:26,660
So that is actually the text.

200
00:11:26,910 --> 00:11:31,600
So after this text and that is after this text, I want to go on to add on the bottom.

201
00:11:31,620 --> 00:11:34,230
So right now I want to do the final link.

202
00:11:35,040 --> 00:11:37,070
I just simply defined the Healthlink.

203
00:11:37,110 --> 00:11:43,580
OK, so the simply defined Haviv and the if I want to define the link will be as a platform.

204
00:11:45,480 --> 00:11:45,820
OK.

205
00:11:45,900 --> 00:11:47,810
And a simply defined as add form.

206
00:11:48,150 --> 00:11:50,190
And here we have to define our equal.

207
00:11:50,220 --> 00:11:52,590
So I have already created this quarter.

208
00:11:52,680 --> 00:11:58,650
So if you go to our first application that you order and here you can see I have already created this

209
00:11:58,650 --> 00:11:59,040
form.

210
00:11:59,220 --> 00:11:59,520
Right.

211
00:11:59,820 --> 00:12:01,360
So now I just simply copy it.

212
00:12:02,250 --> 00:12:07,230
So in our index here, I just simply pasted that is our form into this form area.

213
00:12:07,300 --> 00:12:12,520
Also, if you submitted it, you have to reject it to another piece of other reasons.

214
00:12:12,590 --> 00:12:15,240
Here we have to define as a semicolon Fast's.

215
00:12:15,250 --> 00:12:20,970
I have already discussed about the things we do and also I checked it because without this issue will

216
00:12:20,970 --> 00:12:23,880
be added another slash form after this form.

217
00:12:23,880 --> 00:12:24,240
Right.

218
00:12:24,480 --> 00:12:25,680
So that is the thing.

219
00:12:25,740 --> 00:12:29,820
Now I am actually using so previously I have already discussed about that things with you.

220
00:12:29,820 --> 00:12:32,520
Why you should use that semicolon before that form.

221
00:12:32,550 --> 00:12:35,160
OK, so I just simply added on, added the form.

222
00:12:35,230 --> 00:12:37,740
So now if you click the save all.

223
00:12:38,840 --> 00:12:40,640
And now if you refresh it.

224
00:12:42,140 --> 00:12:48,610
Now, I can see now it's added another link at the ad from OK, so after this I want to do under the

225
00:12:48,620 --> 00:12:49,670
front of the bracket.

226
00:12:50,780 --> 00:12:57,190
I just went to the front of the bracket and they had to add new, add new a bit better.

227
00:12:57,650 --> 00:12:58,760
So I just simply defending it.

228
00:12:58,760 --> 00:13:01,160
And now we have to do we have to load our form.

229
00:13:01,340 --> 00:13:03,740
So here I have to find out you are a little deformed.

230
00:13:03,740 --> 00:13:05,890
That means, you know, are faster.

231
00:13:05,900 --> 00:13:08,870
And that is our form, the competition position here.

232
00:13:08,870 --> 00:13:10,300
I define all of the feel right.

233
00:13:10,310 --> 00:13:15,490
So here I define a field as a field and also the word token.

234
00:13:15,510 --> 00:13:19,940
So in particular, this area, I want to work so that, no, we don't need this, OK?

235
00:13:19,940 --> 00:13:20,540
We don't need this.

236
00:13:20,540 --> 00:13:26,870
I just simply now remove it from here because in particular, that area I have defined that as a test

237
00:13:26,870 --> 00:13:28,490
form as our paragraph's.

238
00:13:28,490 --> 00:13:30,560
I have already discussed about that things with you.

239
00:13:30,560 --> 00:13:33,170
And then also they have solved the headline one.

240
00:13:34,220 --> 00:13:40,100
So now we have to do we have to take all that our headline one data and the text form data from our

241
00:13:40,100 --> 00:13:40,700
model.

242
00:13:40,700 --> 00:13:42,710
And we have the visible lead in our view.

243
00:13:43,000 --> 00:13:47,210
So now go to our view in particular, that area we have to work.

244
00:13:47,420 --> 00:13:49,250
So here we have to defining it.

245
00:13:49,260 --> 00:13:56,690
So here we have to define as a we have to pass all that our data to the dictionary.

246
00:13:57,200 --> 00:14:01,760
So far the regions here are the discussion into the discussion.

247
00:14:01,970 --> 00:14:05,750
I just simply define our two things here.

248
00:14:05,750 --> 00:14:08,150
I want to define all the things with our text form.

249
00:14:08,240 --> 00:14:08,570
Right.

250
00:14:08,990 --> 00:14:15,740
So with this text file to define that and also the idea as a heading ID say, to simply define the text

251
00:14:15,740 --> 00:14:16,270
form.

252
00:14:16,740 --> 00:14:21,470
So already here we have to define the single code, seem to the single code, we have to define our

253
00:14:21,470 --> 00:14:22,130
text form.

254
00:14:22,130 --> 00:14:27,470
And then I want to do and define our all the data that is in our new form that I want to load it.

255
00:14:28,010 --> 00:14:30,470
So here I just simply define our Bolstad data.

256
00:14:30,710 --> 00:14:35,960
And also after that I want to do under define some of the idea that means here I want to displace all

257
00:14:35,960 --> 00:14:36,510
the data.

258
00:14:36,590 --> 00:14:42,080
So in particular that position and that is our heading ID that I named as a heading one.

259
00:14:42,080 --> 00:14:43,430
So I just simply copied it.

260
00:14:43,790 --> 00:14:45,520
And now here it is simply defining it.

261
00:14:45,530 --> 00:14:49,730
So for the heading idea I want to do I want to define some of the text.

262
00:14:50,030 --> 00:14:55,820
What are the the text you want to write down to define as add new musician.

263
00:14:56,990 --> 00:15:01,340
OK, so this step of one of the text is will be display perfect.

264
00:15:01,520 --> 00:15:04,010
So that is addiction.

265
00:15:05,300 --> 00:15:07,160
So there is addiction and there is all written.

266
00:15:07,940 --> 00:15:13,190
So here I load our text form, our new form, Ducktown, that post and then heading.

267
00:15:13,190 --> 00:15:19,220
I have passed and I take that things with distinction and in order that means a reader requesting our

268
00:15:19,220 --> 00:15:20,810
faster form e-mail.

269
00:15:20,810 --> 00:15:22,760
I have passed that things with this context.

270
00:15:23,180 --> 00:15:24,740
That means that a declaration perfect.

271
00:15:25,040 --> 00:15:26,570
So that's all you have to do.

272
00:15:26,570 --> 00:15:30,230
Now let's check this out is to working on not I just have to save all.

273
00:15:31,070 --> 00:15:33,740
I just care to save all now OpenNet.

274
00:15:34,580 --> 00:15:34,940
Yeah.

275
00:15:34,940 --> 00:15:40,130
Everything is perfectly working to have luchador now I just refresh it ok.

276
00:15:40,160 --> 00:15:44,840
I just refresh it as they add new E.S..

277
00:15:44,840 --> 00:15:48,950
Now considering now I think it should be very much clear to you.

278
00:15:49,160 --> 00:15:51,740
So I explain it how that actually work.

279
00:15:51,890 --> 00:15:56,450
So right now here I define our tax form into this tax form.

280
00:15:56,450 --> 00:15:58,250
I define that on here.

281
00:15:58,280 --> 00:15:58,640
Right.

282
00:15:58,640 --> 00:16:03,650
I just simply defined as the tax form will be as battlegroup for the reasons here you can see snowshoeing

283
00:16:03,650 --> 00:16:06,560
as a civil body and here they have the three forms.

284
00:16:06,560 --> 00:16:12,950
So this three form that actually comes from our state bill is comes from our forms, our musician right

285
00:16:13,160 --> 00:16:14,360
into the musician form.

286
00:16:14,630 --> 00:16:15,980
So into the musician form.

287
00:16:15,980 --> 00:16:22,430
If you go are from Syria into this from Syria, I define our musician form, our model in our trade

288
00:16:22,430 --> 00:16:25,400
with our forms, that is, are the class of the model class.

289
00:16:25,610 --> 00:16:29,510
And with this model class, I define our models, our musician models.

290
00:16:29,930 --> 00:16:35,360
So if you go to our model Syria into this model here, you can see they have the musician class and

291
00:16:35,360 --> 00:16:41,120
in here there is a false name, the last name and the instrument and also defined here, defined as

292
00:16:41,120 --> 00:16:42,250
a model, one of the type.

293
00:16:42,260 --> 00:16:47,570
So with this model, I define the type will be as a characterful type character filled and the characterful

294
00:16:47,570 --> 00:16:47,890
type.

295
00:16:47,900 --> 00:16:48,220
Right.

296
00:16:48,530 --> 00:16:51,980
So now you can see the actually three field automatically.

297
00:16:51,980 --> 00:16:53,900
Now it's visible on here.

298
00:16:54,440 --> 00:17:00,500
So for this form, I didn't write any code right so perfectly now concedes no perfectly display our

299
00:17:00,500 --> 00:17:01,850
T of this model field.

300
00:17:02,150 --> 00:17:04,850
So that is our area of this model field is not visible.

301
00:17:04,970 --> 00:17:05,390
Right.

302
00:17:05,570 --> 00:17:11,090
And also in our view into the view, I have the front of the headline one and here I define as the add

303
00:17:11,090 --> 00:17:12,080
new musician.

304
00:17:12,410 --> 00:17:17,270
So in our performance jemal, I have defined that as a head any one.

305
00:17:17,270 --> 00:17:18,480
So that is included.

306
00:17:18,770 --> 00:17:21,440
So with this idea I actually visible some of the text.

307
00:17:21,860 --> 00:17:23,330
So now let's check this out here.

308
00:17:23,330 --> 00:17:29,120
I also defined on the condition like here and first of all, it should be checked as a post method or

309
00:17:29,120 --> 00:17:29,480
not.

310
00:17:29,490 --> 00:17:35,780
So after the initial bettag then I define as a validation here is value to the point which will be valid,

311
00:17:35,780 --> 00:17:36,800
then it should be saved.

312
00:17:36,800 --> 00:17:39,590
This data is still becoming this data are the true.

313
00:17:39,590 --> 00:17:41,360
That means you should be save all the.

314
00:17:42,090 --> 00:17:44,250
Inappropriate in our model area.

315
00:17:44,790 --> 00:17:47,960
OK, and in this model, I have already lowered our pace.

316
00:17:47,970 --> 00:17:54,020
So after that issue will dictate to our written index function that is in our index function pace,

317
00:17:54,210 --> 00:17:55,180
it should be redacted.

318
00:17:55,480 --> 00:17:56,900
Right now, let's check this out.

319
00:17:56,910 --> 00:18:07,050
I want to be able to define as a a a last name I defined as A, B, B, and then C, C, OK, just simply

320
00:18:07,050 --> 00:18:10,590
defined as the first name, last name and the installment of the submit.

321
00:18:11,370 --> 00:18:12,590
Yes.

322
00:18:12,600 --> 00:18:13,440
Now is your friend.

323
00:18:13,440 --> 00:18:21,030
After successfully added that form is now redacted to which page is redacted to our index page and into

324
00:18:21,030 --> 00:18:25,690
this index based consistent showing as the first name, the last name and the instrument.

325
00:18:26,070 --> 00:18:31,590
So here I have defining it so that the written index, our, these secrets that we see in our index,

326
00:18:32,070 --> 00:18:35,670
that is our index functions into the index function is to be elected.

327
00:18:35,940 --> 00:18:39,000
So now you can see it's not successfully selected on here.

328
00:18:39,780 --> 00:18:40,180
Right.

329
00:18:40,440 --> 00:18:42,170
I hope you can well understand about it.

330
00:18:42,180 --> 00:18:46,560
So if you want to add any one as a first name, I defended that.

331
00:18:46,560 --> 00:18:52,220
You do me, you do me one and then you do me for the same purpose.

332
00:18:52,230 --> 00:18:53,700
I'm using it, OK?

333
00:18:53,700 --> 00:18:56,430
You do me to look at the submit.

334
00:18:56,700 --> 00:18:56,990
Yeah.

335
00:18:57,000 --> 00:19:00,950
Now, because it's not perfectly showing as you do me, you do me one and you do too.

336
00:19:01,290 --> 00:19:06,380
And here actually friendly showing actually getting all the things ordered by our first name.

337
00:19:06,690 --> 00:19:12,900
So that is the things I have already defining it on here in our index request that we no index function

338
00:19:12,900 --> 00:19:13,410
here.

339
00:19:13,410 --> 00:19:18,930
I have defined that part like you can see it from the musician that is out of the X of this will be

340
00:19:18,930 --> 00:19:24,990
as in order by with our first name so far, the results actually start showing all the data with our

341
00:19:24,990 --> 00:19:25,630
first name.

342
00:19:25,650 --> 00:19:27,230
So now it's perfectly visible.

343
00:19:28,260 --> 00:19:34,740
So how much easily you can add create some of the form with your model form I think is very much clear

344
00:19:34,740 --> 00:19:35,120
to you.

345
00:19:35,250 --> 00:19:37,770
So that is actually the main procedure you have to flow.

346
00:19:37,920 --> 00:19:42,230
I think you understand it very clearly in your next video on the street.

347
00:19:42,240 --> 00:19:45,960
Musician is about that template filters and inheritance.

348
00:19:46,200 --> 00:19:48,080
Sulkin working with the filters.

349
00:19:48,090 --> 00:19:52,830
How can working with the inheritance in the next video, I will show that things with a living sample.

350
00:19:53,310 --> 00:19:56,550
So thanks for watching and I'll see you in the next video.
