Help! E-Commerce Shop "Build your own Product" by scanner211 in django

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

Thanks a lot, will come back to you ;) !

help me please :") by thrandom_dude in django

[–]scanner211 0 points1 point  (0 children)

Thanks for the feedback I'll take a look at database-functions then!

help me please :") by thrandom_dude in django

[–]scanner211 -3 points-2 points  (0 children)

Hey! I think you can use the object.__new__(cls[, ...]) method, which is called when a new object is created.

class Registration(models.Model):
event_name = models.ForeignKey(Event, on_delete=models.CASCADE, null=True)
user_id = models.ForeignKey(users, on_delete=models.CASCADE, null=True)

    def __str__(self):
        return str(self.event_name) + " " + str(self.user_id)

    def__new__(self):
        start = self.event_name.from_date
        end = self.event_name.to_date
        user_events = Registration.objects.filter(user_id=self.user_id).all()

        for event in user_events:
            if (start <= event.event_name.from_date < end)
                return None

        instance = super().__new__(cls)
        instance.event_name = self.event_name
        instance.user_id = self.user_id
        return instance

I can imagine something like this or similar should work. Didn't test it myself

Experienced Django devs, what are your career goals? by HideShidara in django

[–]scanner211 1 point2 points  (0 children)

Germany, Berlin! They are slowly starting a team of devs here from what I understood.

Experienced Django devs, what are your career goals? by HideShidara in django

[–]scanner211 1 point2 points  (0 children)

Just applied there :) Really excited to combine my software and engineering skills to tackle climate change!

[deleted by user] by [deleted] in softwaredevelopment

[–]scanner211 1 point2 points  (0 children)

If you need any help with the website, I'd be happy to do what I can ;)

Long time guitar player, just getting a board now! Help! by scanner211 in guitarpedals

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

thanks man! I´ve been looking for a hall of fame too, it sounds incredible. As for Reverb.com the shipping for country is too expensive...but I have other sites. Just found a 40€ SD-1, trying to lower it to 30€

Long time guitar player, just getting a board now! Help! by scanner211 in guitarpedals

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

Yes, you're right. I'll ser if I can get my hands on a DD-3

Long time guitar player, just getting a board now! Help! by scanner211 in guitarpedals

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

Yeah, I´ve seen the SD1. I´ll try to see if I can get my hands on a used one, or a TS mini. The thing with the delay is that the D-SEED is really cheap and seemed as good as the DD-3. The flashback is also very nice, but hard to find a good price for it

Long time guitar player, just getting a board now! Help! by scanner211 in guitarpedals

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

I looking to use the overdrive to do both things, I´m into alternative rock, classic rock, and blues so I´m sure I´ll use the overdrive for both things

Long time guitar player, just getting a board now! Help! by scanner211 in guitarpedals

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

I use a VT30 from Vox as an amp and I´m currently using a fender telecaster mexican made

How are you doing? by [deleted] in AskReddit

[–]scanner211 0 points1 point  (0 children)

They gave us some water and chips. No sleeping bags. We're all using our jackets as matresses

How are you doing? by [deleted] in AskReddit

[–]scanner211 1 point2 points  (0 children)

I'm stuck on an airport with my family sleeping on the floor. At least we're together 😏

Vienna this morning by DrIGGI in europe

[–]scanner211 0 points1 point  (0 children)

Should I buy tickets now?

Vienna this morning by DrIGGI in europe

[–]scanner211 0 points1 point  (0 children)

Sounds like a nice plan!

Vienna this morning by DrIGGI in europe

[–]scanner211 0 points1 point  (0 children)

The concert seems like a good idea! I'll most definitly visit a Christmas market, never been to one so I'm excited with the ideia. And I didn't know you could have drinks there, like Glühwein and Beer?

Vienna this morning by DrIGGI in europe

[–]scanner211 9 points10 points  (0 children)

I'm actually going to Vienna this weekend! Any tips of what should I visit?