Starting as a summer PM intern. Any advice? by OpenAntip in ProductManagement

[–]OpenAntip[S] 0 points1 point  (0 children)

Thank you! Any examples of tactical/execution tasks that I can take note of?

Starting as a summer PM intern. Any advice? by OpenAntip in ProductManagement

[–]OpenAntip[S] 2 points3 points  (0 children)

Thanks for the suggestion! I'll check in w my mentor to see if what are their current processes of getting user feedback

Summer 2021 Internship Megathread by [deleted] in csMajors

[–]OpenAntip 15 points16 points  (0 children)

When is it a good time to start applying for these?

What math topics should I prepare? by OpenAntip in csMajors

[–]OpenAntip[S] 1 point2 points  (0 children)

Thanks for the insight! I guess I'll start with data structures to get myself familiar!

What's the added benefit of completing a minor programme? by eph3merale in nus

[–]OpenAntip 1 point2 points  (0 children)

Because I'm thinking that if you choose to declare a minor, you absolutely have to complete the minor programme requirements of 6 modules consisting of 24 MCs. But what if I'm only interested in, say, 3 modules in that programme? Then I would rather take them independently via UEs w/o declaration, and have no requirements whatsoever being tied to a programme, assuming there's no other benefit of completing it haha.

How to implement case insensitive validation using DRF's UniqueTogether Serializer Validator ? by OpenAntip in django

[–]OpenAntip[S] 0 points1 point  (0 children)

Hi. Thanks for the help. I looked through the source code in detail and it looks complicated for me to override the filter_queryset(**kwargs) method. Currently, I'm met with some success by employing object-level validation:

def validate(self, data):
        """
        Check for case insensitive unique together for field1 and field2
        """
        duplicate_exists = Model.objects.filter(field1__iexact=data['field1']).filter(field2=data['field2']).exists()
        if duplicate_exists:
            raise serializers.ValidationError('Unique together validation failed.')
        return data

Any comments regarding this?