collaborator

2022-05-11 Thread ericki...@gmail.com
hello guys, i am working on a personal project and the code base is getting 
out of hand (getting huge) if anyone is intrested in API or Frontend you 
are welcome.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3f116990-a927-4ef5-b10e-140d7ce13fe5n%40googlegroups.com.


django rest framework

2021-08-12 Thread ericki...@gmail.com
MY model
class XP(models.Model):
bizuser = models.ForeignKey(BizUser, on_delete=models.CASCADE)
current_xp_price = models.IntegerField(default=0)
xp_created_at = models.DateTimeField(auto_now_add=True)
xp_updated_at = models.DateTimeField(auto_now_add=True)

i have this function that creates an XP i want if the current user is 
authenticated(jwttokens) the user can then go ahead to create the XP .when 
i go to post this data i get to fields that i have to fill that is  
current_xp_price 
and  bizuser which is a  ForeignKey  how do you automatically fill this 
field (bizuser)ForeignKey rather than having to look for bizuser ID
  
Views

class create_xp(APIView):
def post(self, request):
if request.user.is_authenticated:
current_user = request.BizUser
serializer = XPSerializer(data=request.data)
request.data["bizuser"] = current_user.id

if serializer.is_valid():
serializer.save()
return Response(serializer.data, 
status=status.HTTP_201_CREATED)
return Response(serializer.errors, 
status=status.HTTP_400_BAD_REQUEST)
else:
return Response(status=status.HTTP_401_UNAUTHORIZED)

serializers

class XPSerializer(serializers.ModelSerializer):
class Meta:
model = XP
fields = ['current_xp_price', ]

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ffaa3804-6274-4148-b2ff-111a753aa207n%40googlegroups.com.


Partner

2021-06-23 Thread ericki...@gmail.com
hello guys am looking for any one good at Django and DRF i have couple of 
personal projects which needs this tech spec am not good at them if any one 
is interested plz i will be grateful

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b21836a0-1b17-4467-9b3c-5aba128e2c23n%40googlegroups.com.


need assistant

2020-10-15 Thread ericki...@gmail.com
hello guys am new at Django , i have couple of projects for Django and 
pyside2 if anyone is willing to assist me in this fields i be so great full 
as we learn from each other and carry out more projects


thank you 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c74a57a9-f0df-4a99-94f3-9a34e5bb3500n%40googlegroups.com.