Question: I am trying to run a parameterized test in testNg using dataProvider. But somehow it is always ignoring that test case. Below is the reference code: 

```
@DataProvider(name = "test")
public Object[][] testDP() throws Exception {
    Object[][] arrayObject = getExcelData("TestData.xlsx", "TestData", "testName");
    return arrayObject;
}

@Test(dataProvider = "test", groups = {"sanity"})
public void testMethod(String testName, String logisticsHandler) {
    System.out.print(testName + "\n");
    setUpdateLogisticsHandler(logisticsHandler);
    updateLogisticsHandler(context.getAuthToken(),context.getQuoteIdForRfq());

}

```

Answer: 
Since Django 1.10: `myfield = Foo._meta.get_field('bar_field').get_default()`

see here (not explained in the Docs apparently...) : [https://github.com/django/django/blob/master/django/db/models/fields/**init**.py#L2301](https://github.com/django/django/blob/master/django/db/models/fields/__init__.py#L2301)
```
myfield = Foo._meta.get_field_by_name('bar_field')

```

and the default is just an attribute of the field:

```
myfield.default

```