Hello, friend, welcome back.
In a previous video, we successfully complete our user profile right now, if you go to our home,
if you start with any user, then if you go to that user so that there is a profile page.
Right.
So now I want to do I want to work with our TS user flow and the Honfleur option.
So if you want to do that work, we have to do we have to create two of this function.
One will be as a floor and there will be as unflawed.
So now let's do that work for doing this.
We have to do we have to work in our app blocking that.
If we go to that app logging.
And that is our view.
Right.
So that is our view.
And here I have already created one of the functions that is our user function.
Right.
So first of all, if we go to also in our app logging, if we go to that app logging models into that
blogging model, you can see I have already created one of the glass as a flow.
So now we have to do we have to work with this.
That is our floor.
That means the floors and the flooring.
So I have already created the relation with our user class.
Right.
So now let's do that work for if you want to do that.
Well, first of all, you have to do have to load out this glass.
That means this floor glass in our view, that means in our app logging view.
So here we have to, first of all, load it.
You can see I have already load our app logging that models input.
I input our user profiles to know what to do and to add also our this floor.
OK, so now first of all, you first work, you have to make sure you have to add it.
That means from our model I load out this glass.
That means the floor glass.
So no one would want to create one of the function.
That means after this, after this I want to do one to create another function.
So you will be also as a locking liquid.
Right.
So I make that as a login required.
And also after that, if I take one of the function I name a function as a floor, whatever you want.
Now, I may name it as a floor.
So this floor here, we have to do have to pass that our request and also into the parameter area.
I want to pass our requested parameter as a user name.
If you go to our profile, you consider the name, that user name, and then that is a clever user name
is visible.
Right.
So here I pass out this parameter as a user name and then I want to do I want to take on the variable.
I take one of the variable as a flowing, OK, flowing underscore user to this flowing user will be
our with our user model.
So with this user model, I don't get all that out.
This user or model object data.
I want to get it.
So it will we get our in our user model, they have the by default of the feel of the user name.
Each will be matched with our distinguished user name.
Right when it shall be match.
I want to get this data and take the things with this variable that means that will be our flowing user.
And also I want to take our current user, our current user.
If I want to take another variable, I name it as a flaw, OK, name it as a floor under escort user
and that will be our current user.
Current user means our request it user Lightford.
I hope you remember that part.
And now I want to do I want to put on the conditions.
So here first of all I have to get which user already like another user.
Right right.
Now this user that means that is you do Merian.
So if is crazy.
So right now I'm already logging the Karzai right.
If this Karzai is already in flow, this user, he cannot flow it again.
He will be able to unflawed this user.
Right.
So here we have to put that condition better.
First of all, I want to do I take one of the variable, as they already underscore, flawed, OK,
already flawed to the step, but one of the variable.
And now with our flaw, with our flaw, I want to do I want to actually access are all the objects that
are all the object out of the filter.
So the filter what I want to filter out to of this relation here, we have to take full of distillation.
So that is are flowing and that is our floor and that is our flowing.
Right.
So our floor will be our current user.
That means if you go to a view.
So here in the the filter area into the filter area, I want to do our first of all, this will be as
a floor.
So our floor will be our current user, our current user.
I take the things with this variable and now I pass it on here and also same as also same as our another
one as a floor.
That means the flowing flowing will be our requested user.
That means this because it is I take the things with this variable.
So that will be as a flowing I pass it, it will be much used to be matched with our this flowing user.
So should we take this user is already flow this user or not.
OK, and I just take the things with this variable.
So that is our variable as it already flawed.
I hope it's very much clear difference.
So here we have to check it because of all if this user already offload this user, you cannot able
to flow this user again.
He will be able to unflawed this user, not the floor.
So first of all, here, I have to do have to check it and I just take the things with this variable
and now I want to do and put on the condition that if not, that means if not, this user already flawed,
this user already not followed this user, then what exactly it should be do then I want do I to take
another variable as a floor.
OK, I take it as a floor under a user, so this flawed user will be with our flaw, with our flaw,
it will be again, do that same work.
That means this condition before I take it, and now I too dumb to apply it.
So here I want to pass it.
That means our flaw will be our flaw user.
That means our current user and the flowing will be our lowest flowing user and will still be much after
that and would want to save it after that with this flaw.
And that means the flawed that is with this flawed user.
I want to do and save this data.
So here I save it.
Perfect.
So here we have to add it right.
So now I want to save these doctors will actually run it.
Then everything will be more clear to you.
So here I save it and after that I want to return it.
That message will be ready, then return and do the EDP response to the response and then the reverse
with the reverse.
I don't want to pass on the pace.
So here is will be redirected to our Jewish position, to our user base.
Right.
That means if you go through all that means that is our user base to know how to run the policy.
That means it will be as app logging.
So with this app logging, I want to access our part.
Our part will be as a user right now, I want to do and to access our user.
And also they have one of the parameters that means that user parameters.
So also here we have to pass it, right.
That means also we have to pass it after that user.
So if you want to pass it, as I told you before, they have done it there in your argument.
So here we have to call that you are keyword argument.
Again, that means the KW energy assets with this keyword argument here I want to do in the past hour,
this user name will be our user name.
OK, so that's all you have to do.
That's all you have to do for our fellow user.
And now on to do and to create another one.
I want to create another one for the unflawed.
So it'll be also as a required.
That means the logging declared and I take another function and name it as unflawed.
OK, I name a design flaw.
It still will also pass that request and also still pass out another parameter as a user name.
It'll be just like that.
Same.
And also here we have to first of all, take one of the variable I name me to the floor, OK, flowing
and risk user.
And that will be the same without user, without user objects.
I want to get all that all of this data and it shall we check our user name or the name will be matched
with our requested user name is to match.
Right.
And also we have to get our current user data.
So with the floor that is actually a flawed user.
So with this flawed user, I'm trying to get our current user that is our requested user.
Right.
That will be our current user.
And then also here I have to do have to check it again.
It should be just like as and hour like a dislike option.
Right.
So they told you when I ran it, then everything will be more clear to you.
So with the flow, so with this flow class, I want to get that objects and then I want to filter it
and filter it and filter it with the same condition.
That means the flow, right.
That results will be as a flaw.
Maybe.
Let's check this out, because that is actually the same that the same concept we apply apply.
OK, so better copy it.
And now here I post it.
That means our floor will be as a floor user because of what I also looked at the same name.
Right.
That will be our current user.
And also there is another one that will be appropriate.
This following user will be our D flowing user parsecs.
So for the Honfleur user here, I want to do any service and flow.
It will be deflected.
Our Ts already flawed user.
Right.
So with this already flow sorry.
And with this already already flaws with this already flow right now and we don't let elected.
OK, it shall be now before I say it.
So right now I elected and after that I want to return returned and then the GDP saw its GDP as GDP
responds to direct here with the reverse.
With the reverse.
I want to do on the positive be the same.
No apology.
That means, you know, our app log into the app logging that user user pays.
You should be rejected.
And also here we have to parse that argument.
That means the same things.
They are also had they have won the argument.
So you have to do have to proceed with this argument.
So with this argument, I want to do undeposited with our user name.
User name will be our user name.
So it should be as username Lightford.
So perfect.
So that's all you have to do.
That is our flow, user function and the result flow user function.
So now we have to create both of these.
Etoile That means if you go to our app logging, that is our app logging.
You are also here.
We have to create both of these.
Right.
But I copied and pasted so we first of all I name it as a flaw.
OK, that would be the flaw.
And after that flaw that has all the user name because of all the functionality I have already passed
that the user name.
Right.
So that is a function name as a flaw.
That means, in our view, I already have created as a flaw and I just name it as a flaw.
And then there will be a flaw.
Unfillable, OK, I name it as Unfillable and I for that unflawed that is our user name.
If you go to our view also for the flaw I have past that our user name, that will be as flaw I copied
and here it will be as unflawed and the name I name it as an flaw.
So now I want to do I want to visible it like that means it will be visible in our displays.
Right.
That means that is actually our own profile page that I'm already logged in.
But if this user, such Sajani user and then there are details and here I want to do on to visible.
That means here I want to apply our this flow and then floorplan.
So if you want to do that work, so that is our space.
That is our other space.
Right.
If you go to our view into the view area, I have already declared that as our other user daughters
so that the others other is the symbol here.
Also, we have to do have to pass out this information.
Right.
Also here, we have to parse that which floor and the flowing information.
So also in particular, this function area, we have to pass it.
So if you want to pass it, like after this, after this, I take another variable as I already already
float's already flow will be with our flow, with our flow class.
I want to do same as objects.
Objects will be a filter it.
That means I want the filter and filter out two of this.
That means there should be filter both of this and but I copy it ok, I copy it and now it will be in
the filter.
I pass it through will be as a floor floor means in our model area.
I have already cleared that relation of the floor and the flowing right.
So our this floor will be what this floor will be our D user that in this user can't do that.
So if you want to display the current user, it should be as a request and requested user.
Right.
So that will be as requested user.
And also I get that object before I have already passed it.
You can get that object and take the things with this variable.
And here I pass that a variable that means here I pass it.
Right.
So now we have to do we have to update it.
Also here I get our user object and take the things with this variable that is our user other so our
flowing will be our this user other.
Right.
So that will be our request to the user.
That means the current user and then flowing will be our D variable.
I get it.
And I take the things with this variable.
So that is our variable.
So I pass it.
So I'll have to do I have to pass out this information.
That means the already flow information in our this user, other daughters, Tamalpais Sufyan, to pass
it after that other so that I want to pass it.
That will be already flawed.
I want to pass that other already flawed I hope is very much clear to friend what exactly the things
I did on here.
So now we have to work in our user that we see in our user, other studies, estimates and go to our
user, other daughters to email here.
I want to add one of the button.
I want to add one of the button for the floor at the end flow.
So that is our user name.
OK, after that user name here, I want to display it better here, OK, after that user name, I want
to put some of these spaces so that there is a simple code.
I want to put some of the space.
And after this, after this first of all, I want to to put that condition I have to add.
That condition or condition will be one of the if condition, if our I have already passed into the
view from the you have passed our already flawed you, right.
So that is already fluid.
Users, as they told you, shall be our list and then our current user.
That means flow and the flowing to know what to do.
And Tuesday, I have already get that data without this already flawed variable and also pass it in
our user.
Other studies, Tamalpais.
So now we can actually use it.
We can use it with our if I name it as if not OK, if not our already flawed then it shall be displayed,
then it should be displayed on the deck.
That means Arief and here it will be displayed as a flaw.
OK, we display the floor and ale's aless.
Shall we display another one.
So I make it as ale's LCD, we display another one and after that I want to do want to make it sorry.
After that I want to make it as a and and if that will be as and if so, no it will be as a floor for
the first floor.
I don't want to put on the glass.
OK, also the glasses will be as a bit in between primary so it will be as a bit in between primarily
on the glass.
So that will be our floor.
That means it is user already, not for this user.
Then it will be displayed as a floor and then it should be displayed on floor.
Right.
Or else it should be displayed as a unflawed.
It should be displayed on floor.
So for the floor and the floor, I want to turn to I have already created some of the you are light,
so I have already created that you are ill.
So there is a floor and dance floor to know what to do and to apply it.
That means when we create as a floor then it should be thought this Pottuvil.
So here I have to do I have to load that you are ill, you are ill and into the euro area.
It will be our what will be our app logging.
So with this app logging I want to do in Texas our this name.
So our part name as a floor.
Right.
Will be as a floor.
I name it as a floor.
And after that floor there have also one of the parameter as the user name.
Right.
So now we also have to do we have to pass it.
That means we have to pass it after that.
I named as a user name and user name will be what user name from here I have all.
If we put our view into the view area, I pass every data without this user.
Others, right.
So with this user, others, I want to access our user tabin field as a user name.
I want to access it right.
So at that point, I hope it should be very much clear to you what exactly that user name are.
And here I get all the data.
I cannot pass it.
So now all we have to do the same things we are to do the same things for our unflawed I pastie that
is in our app logging.
I have created that you, whatever your name, will be as a unfillable.
And also they have our user name.
That is our parameter.
So will be as a unflawed with this user name that will be the same as a user with our user.
Others I want to access our user name.
Right.
And that will be our this one that will be on floor.
Perfect.
So that's all you have to do.
Now let's check this out.
If everything OK, it should be work like a save.
All I can say.
Well, first of all, I want to check our server or server servers totally.
Now running.
Now, let's do that work.
Click here, go to our accounts.
Right now I'm a logging with the Karzai.
So this skuzzy.
I want to start with our user as you do me click as a site that is our profile.
You can see that is our floor button.
So now if you click on the floor, yes, you can see free now automatically our this user flowing is
increased and also now it's flowing as the arm flow.
So that is the condition I have apply.
If this user not already flawed, then it'll be displayed the floor.
Right.
Then it it'll be displayed our this floor residents will be displayed as floor.
Right.
When else it'll be displayed on floor.
So you can see it's now become updated and now showing as the floor and our one flowing is increased.
And if you go to our Khasi into the car, you can see one floor is increased.
That means Casie, they have the one floor.
And if you go again with Orien and if you go to the home, go to Orient, clear the sarge.
There is also another account.
If you can get the floor, you can see there is a one floor.
And if you go to ah, take AC, you can see directly for the two floors.
Right front, I hope is very much clear to you.
And also if you want to unflawed this user, let's check this out.
Is perfectly working on not.
I start with the Arion.
You do Merian.
Unflooded, yes, it's updated, and if you go home, yes, you can see it's also updated, perfect.
So and we successfully did that work.
So right now I want to do if you actually flew any user, let me see if you flew as a this user to this
user.
They have some of the post.
OK, so when you actually follow these users right now, I'm already flow this users of these flowing
user, all the posts should be visible in our home base and oil and Floyd, then it should be not visible.
So all that you're following related.
Every user posts data you can visibility in your home page so you can do that work.
In your next video.
I will show that thing with a live example.
So thanks for watching and I'll see you in the next video.