Changes between Version 6 and Version 7 of new_meta_api


Ignore:
Timestamp:
Jul 11, 2014, 5:41:09 AM (10 years ago)
Author:
pirosb3
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • new_meta_api

    v6 v7  
    107107In this case, City has a related hidden object from Person (as you can't access person_set)
    108108
     109===== Concrete
     110Concrete fields are fields that have a column
     111
     112===== Proxied relations
     113Proxied relations are when concrete models inherit all related from their proxies. 
     114
     115{{{
     116class Person(models.Model):
     117    pass
     118
     119class ProxyPerson(Person):
     120    class Meta:
     121        proxy = True
     122
     123class RelationToProxy(models.Model):
     124     proxy_person = models.ForeignKey(ProxyPerson)
     125}}}
     126
     127In this case, Person has no related objects, but it has 1 proxied related object from RelationToProxy.
     128
     129
     130
    109131
    110132
Back to Top