1
00:00:00,240 --> 00:00:01,800
Hello, friend, welcome back.

2
00:00:02,190 --> 00:00:09,520
In a previous video, we successfully add our musician form and also from here we can insert that data,

3
00:00:09,540 --> 00:00:09,890
right?

4
00:00:10,200 --> 00:00:12,810
So now we have to do the same things for our album.

5
00:00:12,990 --> 00:00:13,330
Right.

6
00:00:13,350 --> 00:00:17,060
So we have to do the same thing because we have already created that is texture.

7
00:00:17,070 --> 00:00:22,490
So we can do that work with using the copy and paste like here right now.

8
00:00:22,500 --> 00:00:26,220
First of all, you have to do we have to work in our farm area into the farm area.

9
00:00:26,220 --> 00:00:28,050
First of all, we have to define the class.

10
00:00:28,470 --> 00:00:30,120
So we just like that same.

11
00:00:30,120 --> 00:00:34,170
I just simply copied and after this I just simply define another class.

12
00:00:34,170 --> 00:00:37,650
And now I want to do and define the class name as an album form.

13
00:00:39,630 --> 00:00:45,150
OK, I name it as the album form and then it'll be just like the same.

14
00:00:45,160 --> 00:00:48,170
It will be inundated with our forms, other forms.

15
00:00:48,180 --> 00:00:49,200
That is our model form.

16
00:00:49,410 --> 00:00:54,540
And then I just simply define as a middle class and all the models and I wanted to do to get all the

17
00:00:54,540 --> 00:00:56,040
data from our wish table.

18
00:00:56,190 --> 00:01:00,540
If we go to that model and to get all the data from our albums table right.

19
00:01:00,840 --> 00:01:02,090
That means the album tables.

20
00:01:02,100 --> 00:01:05,790
I just simply copied no go to our form here.

21
00:01:05,790 --> 00:01:10,710
I just simply define what these models and our album and then I just simply defined that field.

22
00:01:10,710 --> 00:01:12,670
I want to get all the data right.

23
00:01:12,690 --> 00:01:14,440
So here I get all the data.

24
00:01:14,550 --> 00:01:22,380
So now we have to do we have to work, in our view, go to that view and the view that is our musician

25
00:01:22,380 --> 00:01:24,740
form and now that is our album form.

26
00:01:25,110 --> 00:01:27,000
So this will be just like that same.

27
00:01:27,000 --> 00:01:27,410
Right.

28
00:01:27,430 --> 00:01:28,660
It'll be just like that.

29
00:01:28,680 --> 00:01:33,360
Same so better I want to do I want to copy everything from here.

30
00:01:33,390 --> 00:01:34,740
So I just simply copy it.

31
00:01:35,550 --> 00:01:40,530
I just simply copy everything because here is a bit just like Samso here.

32
00:01:40,530 --> 00:01:41,960
I just simply after this.

33
00:01:42,540 --> 00:01:45,240
OK, so after this here I just have Lippestad.

34
00:01:46,510 --> 00:01:46,820
Right.

35
00:01:47,130 --> 00:01:52,110
So now that is our first of all, the form we have to pass our form names.

36
00:01:52,110 --> 00:01:53,730
So here to have created this class.

37
00:01:53,730 --> 00:01:55,950
So that is glass name as an album form.

38
00:01:55,950 --> 00:02:01,500
So I just simply copied and now I just first of all, define the object for this album form.

39
00:02:01,830 --> 00:02:06,030
And now with this album form, I have to do a project as a Post-it note.

40
00:02:06,030 --> 00:02:11,710
So then I just simply define that as a request and that valid seed is valid.

41
00:02:11,710 --> 00:02:17,340
Then I want to say that this data that is only inside this data into the database and after that it

42
00:02:17,340 --> 00:02:19,350
should be also written in our index.

43
00:02:19,380 --> 00:02:19,710
Right.

44
00:02:19,860 --> 00:02:25,320
And after this also, we have to do have to pass notations that we define that things on here should

45
00:02:25,320 --> 00:02:26,490
be just like the same.

46
00:02:26,500 --> 00:02:30,590
But I just copied and after this I just simply proceed.

47
00:02:30,600 --> 00:02:35,820
So here I want to do I have to pass our album forms I to simply define our album form into the form

48
00:02:36,240 --> 00:02:39,200
so that we have to define all of the form in our album.

49
00:02:39,210 --> 00:02:39,950
That means here.

50
00:02:39,960 --> 00:02:40,340
Right.

51
00:02:40,740 --> 00:02:43,190
So now go to our first step.

52
00:02:43,200 --> 00:02:47,520
That is in our template, in the template that is are fast AB and that is our album.

53
00:02:47,520 --> 00:02:49,070
That means that our album form.

54
00:02:49,440 --> 00:02:55,950
So this form will be just like our musician that is a musician, but I just simply copy everything,

55
00:02:55,980 --> 00:03:02,340
OK, or either then I just simply copy that form, I just copy it and now go to our album form.

56
00:03:02,490 --> 00:03:05,670
And here after this I just simply passed it.

57
00:03:05,970 --> 00:03:08,670
So be as a method will be as opposed.

58
00:03:08,670 --> 00:03:16,020
And then here I pass our data, so I pass this data as the album forms, I just simply copy it.

59
00:03:16,020 --> 00:03:17,360
So that is our form data.

60
00:03:18,090 --> 00:03:21,990
So here I have to define the album form as the paragraph upright.

61
00:03:22,200 --> 00:03:26,730
And then also I define that our a set of Tolkin and then the submit button.

62
00:03:26,730 --> 00:03:28,650
It will be as an add album.

63
00:03:31,650 --> 00:03:34,830
And then also I define the class for this one.

64
00:03:35,040 --> 00:03:37,350
That means I have defined class for our D button.

65
00:03:37,650 --> 00:03:38,840
So now let's check this out.

66
00:03:38,850 --> 00:03:42,660
If you're not clear to save all, I just get to save all.

67
00:03:42,660 --> 00:03:45,960
Now go here and go to the home.

68
00:03:47,510 --> 00:03:53,660
And I go to that album, yeah, you can see is appropriately getting all that our feel, so that is

69
00:03:53,660 --> 00:04:00,020
our album form and also you can see automatically getting all that our artist name right.

70
00:04:00,050 --> 00:04:02,960
So I have already defined this step up one of the conditions.

71
00:04:02,970 --> 00:04:09,800
So if you go to our models into those models, you can say I have already defined defined on the authority

72
00:04:09,800 --> 00:04:10,770
of this musician.

73
00:04:10,790 --> 00:04:15,320
That means if you go to our database in the database, automatically this.

74
00:04:15,740 --> 00:04:17,570
So here they have also one of the ID.

75
00:04:18,140 --> 00:04:24,740
If you go to our album and into the album, they have also one of the ID as they define foreign key

76
00:04:24,740 --> 00:04:26,020
as the artist idy.

77
00:04:26,270 --> 00:04:32,890
That means this artist IDs foreign key of our hour for this position to be decided.

78
00:04:33,080 --> 00:04:33,420
Right.

79
00:04:33,710 --> 00:04:38,240
So for the reasons here, you can see so perfectly getting our this artist Demps, all that artist name

80
00:04:38,240 --> 00:04:43,270
is downloaded and there is a name, there is a release date and there is our all the list.

81
00:04:43,410 --> 00:04:46,530
So here I have also defined sound the Afshan data.

82
00:04:46,790 --> 00:04:51,650
So here, if you already remember it, you can see I have already defined some of the rating as a one

83
00:04:51,650 --> 00:04:54,770
value, as a worst to value for the bad.

84
00:04:55,190 --> 00:04:57,550
Not bad, good and excellent.

85
00:04:57,560 --> 00:04:57,820
Right.

86
00:04:57,860 --> 00:04:59,000
So that is actually all that.

87
00:04:59,000 --> 00:05:02,260
Our value also is separately getting all the data.

88
00:05:02,600 --> 00:05:04,420
But here our debt is not visible.

89
00:05:04,430 --> 00:05:09,650
So if you want to display this data I have already discussed about that things with you, how can display

90
00:05:09,650 --> 00:05:11,670
some of the calendar in particular that area.

91
00:05:11,990 --> 00:05:16,820
So if you want to load the calendar, in particular, that area, I have already discussed about that

92
00:05:16,820 --> 00:05:17,410
things with you.

93
00:05:17,420 --> 00:05:17,700
Right.

94
00:05:17,720 --> 00:05:23,870
So here now we want to do and to actually added so you can be added, you have to go to your farm area

95
00:05:24,050 --> 00:05:26,540
and here you have to define that to be used for this.

96
00:05:26,540 --> 00:05:26,790
Right.

97
00:05:27,200 --> 00:05:30,700
So after this after this, I just simply define our filename.

98
00:05:31,100 --> 00:05:33,290
That means that is actually our field name.

99
00:05:33,290 --> 00:05:41,400
So this filename I have defined, if you go our album and you can see this filename as a release date.

100
00:05:41,450 --> 00:05:47,390
So now I just simply copied I want to make this field as our date format.

101
00:05:47,400 --> 00:05:51,080
So here I simply defined as is equal to and then our forms.

102
00:05:52,070 --> 00:05:57,530
So with this form I define our time will be as a date type that in the date field and into the date

103
00:05:57,530 --> 00:05:57,830
field.

104
00:05:57,830 --> 00:05:59,210
I have to do I have to define that.

105
00:05:59,210 --> 00:06:02,780
We get I have already discussed about that in situ.

106
00:06:02,790 --> 00:06:05,420
I think I now can see how much of it is.

107
00:06:05,750 --> 00:06:08,480
So with this we get snow on the ground to define our form.

108
00:06:09,500 --> 00:06:11,150
So I just simply define our forms.

109
00:06:11,150 --> 00:06:12,020
And this forms.

110
00:06:12,020 --> 00:06:18,980
I define the text input, text input rights into the text input.

111
00:06:18,990 --> 00:06:20,620
We have to pass our attribute.

112
00:06:20,660 --> 00:06:25,970
So here at the WTI, it is so with this we have to pass it.

113
00:06:25,980 --> 00:06:27,920
So here we d we have to pass.

114
00:06:27,920 --> 00:06:28,970
First of all, the type,

115
00:06:31,940 --> 00:06:34,690
our type and our type will be as a date.

116
00:06:34,700 --> 00:06:37,010
So I just simply defined as a date.

117
00:06:37,460 --> 00:06:37,790
Right.

118
00:06:37,820 --> 00:06:40,420
So to simply define a date that perfect.

119
00:06:40,430 --> 00:06:41,540
So that's all you have to do.

120
00:06:41,540 --> 00:06:46,580
Now click on the Savol and now if you refresh it.

121
00:06:48,130 --> 00:06:53,010
Yeah, you can see it's not perfectly updated, so now our calendar is now perfectly loaded, right?

122
00:06:53,410 --> 00:06:58,570
So now we're going to do Mountain Saadet because here I have already defined all the parts in our view.

123
00:06:58,630 --> 00:07:02,560
So here I have already defined our object as the album form.

124
00:07:02,770 --> 00:07:06,880
And if it's valid, then I want to do and to save this data into the database.

125
00:07:06,880 --> 00:07:11,470
And when I shall be Saib after that, it will be key to our index phase.

126
00:07:11,950 --> 00:07:13,750
Right, that machine, our index function.

127
00:07:14,140 --> 00:07:22,300
So now I want to check it like here I just select our Kazarian as a name and just name it as a check,

128
00:07:23,080 --> 00:07:23,440
ok?

129
00:07:23,500 --> 00:07:24,480
Name it as a jack.

130
00:07:24,490 --> 00:07:30,550
And here I define that release date as a decision and I just simply define as a axilla and click as

131
00:07:30,550 --> 00:07:31,320
the album.

132
00:07:31,630 --> 00:07:32,080
Yes.

133
00:07:32,080 --> 00:07:38,380
You can see it's perfectly in that data because of all we that or is not related to our in backspace.

134
00:07:38,740 --> 00:07:42,850
So now if you go here and now if you refresh it, yes.

135
00:07:42,850 --> 00:07:48,110
You can see the ID, the name release date and the number of visitors I have defined.

136
00:07:48,110 --> 00:07:49,360
So that is actually the value.

137
00:07:49,690 --> 00:07:52,470
So as I told you here, I have defined this value.

138
00:07:52,750 --> 00:07:54,460
So this value actually saved.

139
00:07:54,460 --> 00:07:54,790
Right.

140
00:07:55,000 --> 00:07:56,410
So that we are excellent.

141
00:07:56,410 --> 00:08:00,580
And for the excellent I have defined as a five below, I'm for the good.

142
00:08:00,580 --> 00:08:07,240
I have defined that for value like I want to do and insert again go to our ADD album here.

143
00:08:07,240 --> 00:08:12,620
I define that Michael Jackson and for the Michael Jackson, I name it as a hello, whatever.

144
00:08:12,640 --> 00:08:15,420
I don't actually put out the demo takes.

145
00:08:15,430 --> 00:08:17,040
I think you will understand about it.

146
00:08:17,120 --> 00:08:25,300
I just believe and the release date and I just simply defined as a good click of the album go here browsr

147
00:08:25,360 --> 00:08:25,690
it.

148
00:08:25,840 --> 00:08:26,170
Yeah.

149
00:08:26,200 --> 00:08:32,500
You can see it's not perfectly showing our artist idea as a one that is artistically added to and also

150
00:08:32,500 --> 00:08:34,630
showing our release date and the check.

151
00:08:35,020 --> 00:08:37,600
So also on to insert another one with our artist.

152
00:08:37,600 --> 00:08:45,550
I do want that means if you go our musician into the musician ID, you can see that I'd actually won

153
00:08:45,550 --> 00:08:47,680
that Kasie that Moscati for the one.

154
00:08:47,680 --> 00:08:48,040
Right.

155
00:08:48,310 --> 00:08:49,960
So that is a good idea, as I told you.

156
00:08:49,960 --> 00:08:57,520
So we match with our deeside so no one to do and to insert another one go to home at Elbaum.

157
00:08:58,000 --> 00:09:02,620
I do find a Kazarian and now I define as a test.

158
00:09:04,390 --> 00:09:05,380
Define as the test.

159
00:09:06,100 --> 00:09:07,420
Define that date.

160
00:09:07,720 --> 00:09:08,820
Define that number.

161
00:09:08,830 --> 00:09:11,050
We start click on the ad album.

162
00:09:11,830 --> 00:09:12,880
Go here.

163
00:09:14,240 --> 00:09:15,650
Our album.

164
00:09:16,860 --> 00:09:22,640
Yeah, it's now successfully inserted and you can see also snowshoeing as an artist, ID as a one,

165
00:09:22,650 --> 00:09:26,730
OK, that means this artist actually created this album.

166
00:09:26,730 --> 00:09:27,870
So that is the album.

167
00:09:27,930 --> 00:09:29,630
OK, so that particular album name.

168
00:09:29,910 --> 00:09:35,480
So now I want to do I want to in our home base here is not showing all that our musician.

169
00:09:35,490 --> 00:09:35,820
Right.

170
00:09:36,120 --> 00:09:41,550
So here if you click into the musician piece, I like to here, if you click as a Cancerian, it'll

171
00:09:41,550 --> 00:09:46,560
be the key to our adult profile pages and into the profile pages will be displayed all that.

172
00:09:46,560 --> 00:09:49,950
Kazarian deleted all that album so we can define this.

173
00:09:49,950 --> 00:09:53,120
In our next video, I will show you that things with a live example.

174
00:09:53,460 --> 00:09:56,730
So thanks for watching and I will see you in the next video.
