I translated my model into english to make everything more
understandable for the list. There is were I messed up (next time i do
everything in English right away). I rechecked everything after the
message of Nuno and removed an error.
Now everything works perfectly. Thank you Bruno and Nuno!
--
On Fri, Mar 19, 2010 at 2:11 PM, het.oosten wrote:
> To clarify. If I have three houses, and house 120 has two
> reservations, I get a list like this:
>
> 120 121 122 120 (if all are available)
>
> If the query matches one reservation of house 120 i get a list like
> this:
>
> 121 122 120
>
> Hou
To clarify. If I have three houses, and house 120 has two
reservations, I get a list like this:
120 121 122 120 (if all are available)
If the query matches one reservation of house 120 i get a list like
this:
121 122 120
House 120 should been excluded from the list though.
--
You received th
Thank you very much for your reply. It really makes sense to change
the foreignkey, and have have changed this. The core of the problem
however remains the same.
Everything works fine when only one reservation per house is entered.
When I enter two reservations on one house, only one one of the tw
On Mar 18, 4:28 pm, "het.oosten" wrote:
> I have this model:
> class House(models.Model):
> Huisnumber = models.CharField(max_length=3)
> Reservation = models.ForeignKey('Data', blank=True)
> def __unicode__(self):
> return self.Huisnumber
>
> class Data(mode
I have this model:
class House(models.Model):
Huisnumber = models.CharField(max_length=3)
Reservation = models.ForeignKey('Data', blank=True)
def __unicode__(self):
return self.Huisnumber
class Data(models.Model):
Name = models.CharField(max_length=30
6 matches
Mail list logo