gis.geoip.GeoIP.country_name_by_addr()

GeoIP.country_name_by_addr(query)

test.Response.client

client The test client that was used to make the request that resulted in the response.

gis.gdal.Layer.extent

extent Returns the spatial extent of this layer, as an Envelope object: >>> layer.extent.tuple (-104.609252, 29.763374, -95.23506, 38.971823)

utils.translation.pgettext_lazy()

pgettext_lazy(context, message) Same as the non-lazy versions above, but using lazy execution. See lazy translations documentation.

gis.feeds.Feed.geometry()

geometry(obj) Takes the object returned by get_object() and returns the feed’s geometry. Typically this is a GEOSGeometry instance, or can be a tuple to represent a point or a box. For example: class ZipcodeFeed(Feed): def geometry(self, obj): # Can also return: `obj.poly`, and `obj.poly.centroid`. return obj.poly.extent # tuple like: (X0, Y0, X1, Y1).

db.models.Lookup.process_rhs()

process_rhs(compiler, connection) [source] Behaves the same way as process_lhs(), for the right-hand side.

db.models.Expression.contains_aggregate

contains_aggregate Tells Django that this expression contains an aggregate and that a GROUP BY clause needs to be added to the query.

admin.StackedInline

class StackedInline [source] The admin interface has the ability to edit models on the same page as a parent model. These are called inlines. Suppose you have these two models: from django.db import models class Author(models.Model): name = models.CharField(max_length=100) class Book(models.Model): author = models.ForeignKey(Author, on_delete=models.CASCADE) title = models.CharField(max_length=100) You can edit the books authored by an author on the author page. You add inlines t

utils.translation.npgettext_lazy()

npgettext_lazy(context, singular, plural, number) [source] Same as the non-lazy versions above, but using lazy execution. See lazy translations documentation.

http.QueryDict.update()

QueryDict.update(other_dict) Takes either a QueryDict or standard dictionary. Just like the standard dictionary update() method, except it appends to the current dictionary items rather than replacing them. For example: >>> q = QueryDict('a=1', mutable=True) >>> q.update({'a': '2'}) >>> q.getlist('a') ['1', '2'] >>> q['a'] # returns the last '2'