add more test with inheritance, fix ordering of subquery in first and get, regenerate api docs with only documented items
This commit is contained in:
@ -27,13 +27,6 @@ class AliasManager()
|
||||
Keep all aliases of relations between different tables.
|
||||
One global instance is shared between all models.
|
||||
|
||||
<a name="relations.alias_manager.AliasManager.__init__"></a>
|
||||
#### \_\_init\_\_
|
||||
|
||||
```python
|
||||
| __init__() -> None
|
||||
```
|
||||
|
||||
<a name="relations.alias_manager.AliasManager.prefixed_columns"></a>
|
||||
#### prefixed\_columns
|
||||
|
||||
|
||||
@ -11,13 +11,6 @@ class QuerysetProxy(ormar.QuerySetProtocol)
|
||||
Exposes QuerySet methods on relations, but also handles creating and removing
|
||||
of through Models for m2m relations.
|
||||
|
||||
<a name="relations.querysetproxy.QuerysetProxy.__init__"></a>
|
||||
#### \_\_init\_\_
|
||||
|
||||
```python
|
||||
| __init__(relation: "Relation", type_: "RelationType", qryset: "QuerySet" = None) -> None
|
||||
```
|
||||
|
||||
<a name="relations.querysetproxy.QuerysetProxy.queryset"></a>
|
||||
#### queryset
|
||||
|
||||
|
||||
@ -10,13 +10,6 @@ class RelationsManager()
|
||||
|
||||
Manages relations on a Model, each Model has it's own instance.
|
||||
|
||||
<a name="relations.relation_manager.RelationsManager.__init__"></a>
|
||||
#### \_\_init\_\_
|
||||
|
||||
```python
|
||||
| __init__(related_fields: List[Type[ForeignKeyField]] = None, owner: "NewBaseModel" = None) -> None
|
||||
```
|
||||
|
||||
<a name="relations.relation_manager.RelationsManager._get_relation_type"></a>
|
||||
#### \_get\_relation\_type
|
||||
|
||||
|
||||
@ -10,13 +10,6 @@ class RelationProxy(list)
|
||||
|
||||
Proxy of the Relation that is a list with special methods.
|
||||
|
||||
<a name="relations.relation_proxy.RelationProxy.__init__"></a>
|
||||
#### \_\_init\_\_
|
||||
|
||||
```python
|
||||
| __init__(relation: "Relation", type_: "RelationType", field_name: str, data_: Any = None) -> None
|
||||
```
|
||||
|
||||
<a name="relations.relation_proxy.RelationProxy.related_field_name"></a>
|
||||
#### related\_field\_name
|
||||
|
||||
|
||||
@ -14,15 +14,6 @@ Different types of relations supported by ormar:
|
||||
* reverse ForeignKey = REVERSE
|
||||
* ManyToMany = MULTIPLE
|
||||
|
||||
<a name="relations.relation.RelationType.PRIMARY"></a>
|
||||
#### PRIMARY
|
||||
|
||||
<a name="relations.relation.RelationType.REVERSE"></a>
|
||||
#### REVERSE
|
||||
|
||||
<a name="relations.relation.RelationType.MULTIPLE"></a>
|
||||
#### MULTIPLE
|
||||
|
||||
<a name="relations.relation.Relation"></a>
|
||||
## Relation Objects
|
||||
|
||||
@ -119,10 +110,3 @@ Return the related model or models from RelationProxy.
|
||||
|
||||
`(Optional[Union[List[Model], Model]])`: related model/models if set
|
||||
|
||||
<a name="relations.relation.Relation.__repr__"></a>
|
||||
#### \_\_repr\_\_
|
||||
|
||||
```python
|
||||
| __repr__() -> str
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user