Changes between Initial Version and Version 6 of Ticket #4306


Ignore:
Timestamp:
Jul 16, 2007, 8:17:20 AM (17 years ago)
Author:
Malcolm Tredinnick
Comment:

Fixed description formatting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4306

    • Property Version 0.96SVN
    • Property Triage Stage UnreviewedAccepted
  • Ticket #4306 – Description

    initial v6  
     1{{{
     2#!python
    13class Website(models.Model):
    24    id = models.IntegerField(primary_key=True)
     
    810    id = models.IntegerField(primary_key=True)
    911    site = models.ForeignKey(Website, to_field='dfp_id')
    10 
     12}}}
    1113444549 is a valid dfp_id in the Website model.
    1214
     15{{{
    1316Report.objects.filter(site=444549)  <-- Returns results. good.
    1417Report.objects.filter(site__id=444549)  <-- Returns results, but it shouldn't.
    1518Report.objects.filter(site__dfp_id=444549)  <-- No results, but it should.
    16 
     19}}}
    1720130 is the valid id for a Website.
     21{{{
    1822Report.objects.filter(site__id=130) <- No results, no work around.
    1923Report.objects.filter(site__name='Validname') <- Also no results.
    2024Report.objects.filter(site__url='validurl.com') <- Also no results
     25}}}
Back to Top